Recently, while trying to use RemoteIO on the iphone, I had to resort to using the device only for testing. The simulator would give me a -66681 return code from AudioOutputUnitStart, whereas the device would work without problems.
Turns out theres a simple fix for that, detailed here.
Find UILocalizedIndexedCollation.h and change the line:
UIKIT_EXTERN @interface UILocalizedIndexedCollation : NSObject
to become
UIKIT_EXTERN_CLASS @interface UILocalizedIndexedCollation : NSObject
I made the change in both the iphone device and simulator SDKs (3.0 in my case). I also reset my simulator.
One clean rebuild later and AudioOutputUnitStart worked perfectly.
Update: Actually, the error is back now and no combination of reseting, cleaning and rebuilding seems to fix it. Crap.
i tried this method. It didnt worked for me also. So any idea about how to fix this problem ? Thanks in advance..
Check out http://snowymonkey.wordpress.com/2010/02/06/my-iphone-audio-code/
I’ve put all my audio code up. Should cover setup, callbacks and destruction.
[...] audio, code, iphone I previously stated that I had a fix for the AudioOutputUnitStart -66681 error, then updated the post stating I’d [...]