kstenerud / ObjectAL-for-iPhone

Mac and iOS Audio development, minus the headache. ObjectAL is the easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
http://kstenerud.github.com/ObjectAL-for-iPhone
886 stars 176 forks source link

Build errors with Xcode 4.1 #16

Closed cliffjoyce closed 12 years ago

cliffjoyce commented 12 years ago

I'm trying to build my iOS 4 project, and getting several build errors when using including either the bleeding edge or 2.0 versions of ObjectAL. Here are the Xcode build errors:

OALFunction.m - lines 39, 68, 98, 128 (the SYNTHESIZE_SINGLETON_FOR_CLASS statements). Xcode error is "Conflicting distributed object modifers on return type in implementation of 'release'".

OALActionManager.m - line 56, same error code.

OpenALManager.m - line 156, same error code.

OALAudioSession.m - line 107, same error code.

IOSVersion.m - line 17, same error code.

OALAudioTracks.m - line 61, same error code.

OALSimpleAudio.m - line 67, same error code.

kstenerud commented 12 years ago

I don't have Xcode 4.1 yet. Can you try the following:

Check the documentation for NSObject and check what the declared return type of "release" is.

If the return type is "(oneway void)", try the following:

In SynthesizeSingleton.h, line 199:

Change the return type from:

- (void)release \

to

- (oneway void)release  \

If that works, I'll make the changes in ObjectAL as well.

cliffjoyce commented 12 years ago

Thanks, Karl. You are correct about the NSObject declared return type of release. With your single change, ObjectAL builds cleanly in Xcode 4.1. Thanks so much for developing and maintaining ObjectAL. We very much appreciate it.

kstenerud commented 12 years ago

Awesome! Glad to help.