views:

193

answers:

2

I created my own small .m4a file with GarageBand, for use in my app on the iPhone. Everytime I try to Add existing file, XCode crashes when I select the .m4a file. The file itself will play nicely in QuickTime Player and iTunes.

Any workarounds?

A: 

Don't know why Xcode would be crashing, but you might try converting the audio file to the recommended format for iPhone.

Kristopher Johnson
Well, I tried that before, but I get the infamous "Error: output channel layout has wrong number of channels (-1)".Thanks anyway, I'll see if I can somehow convert the m4a into something else.
Sander de Jong
Alas, same result when adding an .aif file: XCode crashes as soon as I try to add it (after the selection of the file, but before the dialog that asks about referencing or copying).
Sander de Jong
A: 

So this is the workaround: put the .m4a file into a directory and "Add existing file" that directory to the project. That works, both the directory and the .m4a file in that directory are now part of the project.

Big XCode bug if you ask me.

Sander de Jong
http://bugreporter.apple.com/ is the place to report it to Apple.
Kristopher Johnson