Xcode3 <10.7 SDK / Audiounits not working

I am using xcode 3.26 with the latest tip on 10.68. I have to add JUCE_DISABLE_AU_FACTORY_ENTRY in order to compile AUs but even then there are some files added by the Introducer that don’t exist in the 10.6 SDK “AUPluginDispatch.*” After removing those manually, the audiounit builds but doesn’t validate:

[code] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
AU Validation Tool
Version: 1.6.1a1
Copyright 2003-2007, Apple, Inc. All Rights Reserved.

     Specify -h (-help) for command options


VALIDATING AUDIO UNIT: ‘aumf’ - ‘Jtpl’ - ‘oliL’

Manufacturer String: Oli Larkin
AudioUnit name: Juce Test Plugin
Component Version: 1.0.0 (0x10000)

    • PASS

TESTING OPEN TIMES:
COLD:
JUCE v2.0.32
FATAL ERROR: OpenAComponent: result: -10877,0xFFFFD583
olimbp2:~ oli$ [/code]

If you’re using the latest tip, then why not go to Xcode 4?

If someone wants to still support powerpc, afaik using xcode 3 is the way to go…

Moving to Xcode4 requires upgrading to 10.7/10.8, to get the more recent versions and would break too much stuff right now to make it worthwhile for me. I’ve had a lot of trouble trying to compile RTAS stuff on Xcode4 with the latest compilers etc. Also i am much more productive on v3. Surely IntroJucer could be modified to make Xcode3 compatible AU projects quite easily? I understand your pain though

here’s a patch for a suggested workaround to build AU plugins on both XCode 3 and 4 without any manual work: https://github.com/yairchu/JUCE/commit/3b9f8aa7008cd0c9f7238e848ac10cd87d15aa15

Cheers! Yair

Looks like a good plan - will have a go asap…