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
885 stars 171 forks source link

I got a error when running objectal example #100

Open sloopdoom opened 7 years ago

sloopdoom commented 7 years ago

The error : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMutableArray newMutableArrayUsingWeakReferencesWithCapacity:]: unrecognized selector sent to class 0x1b854dd90'

It seems NSMutableArray has no method of " newMutableArrayUsingWeakReferencesWithCapacity" but I found it in the NSMutableArray+WeakReferences.h .

my code: OALSimpleAudioSample * sample = [OALSimpleAudioSample alloc] ; [sample init]; // <------ error occur