0
0

Hi, I’m developing an iOS app using Cocos 2D. The current version of my app works fine and is almost finished. However I’m creating a new project to make a new version with the latest Cocos 2D version, and I’ve set the new XCode project very carefully including all the files and links that the working version has but I get this build warning:

[i:rreyipda][b:rreyipda]ld: warning: ignoring file /Developer/FMOD Programmers API iPhone/api/lib/libfmodex_iphoneos.a, missing required architecture i386 in file[/b:rreyipda][/i:rreyipda]

And then this error:

[b:rreyipda][i:rreyipda]Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1[/i:rreyipda][/b:rreyipda]

I compared the project settings of the two projects and checked every item that is related to architecture but still get the error. I think this must be some simple setting but I am not an iOS expert so any help would be appreciated.

Juan P. Reyes

  • You must to post comments
0
0

It looks to me like you are targeting the simulator (hence the i386 arch warning) but linking in libfmodex_iphoneos.a instead of libfmodex_iphonesimulator.a. To automatically handle both cases link using -lfmodex_$PLATFORM_NAME.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.