Compiling Audio Unit in Xcode 4.2.1


#1

Hi Jules

I’m getting this error in Xcode 4.2.1
I’m using the tip but maybe it’s not a new issue (Didn’t pull for some time)


#2

The code’s fine, not sure what’s going on there - either the version of Xcode or your build is messed-up somehow.


#3

I guess the time has come for an Xcode upgrade.

Thanks Jules


#4

I found out that those errors occurred when my Introjucer was set to :

Base SDK Version = Compatibility Version = 10.5

When I changed the base version to 10.6 there were no more errors.

Maybe it has to do with this code:

	#if !TARGET_OS_IPHONE
		#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/Components.h>
	
		#if	(MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5)
			#define AudioComponentInstance			ComponentInstance
			#define AudioComponentDescription		ComponentDescription
			#define	AudioComponent					Component
			#define CA_DO_NOT_USE_AUDIO_COMPONENT	1
		#endif
	#endif