views:

27

answers:

0

Hi I have an iPhone project which heavily uses sound samples and Open AL. Sound samples in it's original form are aifs. For Open AL I need cafs. So to keep things simple I've decided to move conversion procedure into custom build rule of XCode project. There is a brilliant article right about this task http://www.henryflurry.com/news/files/310d2e3ce81b5ab4420ab6df506fbece-12.html So I've ended up with just the same script (except paths) like in article. First everything seemed fine. But then random afconvert errors start to appear. All of them were "Error: ExtAudioFileCreateWithURL failed ('prm?')". They appeared on random files and usually after clear build. Sometimes building second times (not clean) succeeded without errors. Disk space is ok, permissions are too. I've tried to rerun afconvert procedure with the same params as failed in building - everything went fine. Had anybody done something similar or experienced such errors?

echo Converting ${INPUT_FILE_PATH} to ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${INPUT_FILE_BASE}.caf /usr/bin/afconvert -f caff -d LEI16 ${INPUT_FILE_PATH} ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${INPUT_FILE_BASE}.caf