3

现在我在研究cocos2dx,我用xcode搭建了一个demo,还可以,但是用xcodebuild搭建的时候就报错了。

xcodebuild -project proj.ios/CoinFlip.ios.xcodeproj -scheme CoinFlip.ios -configuration Debug -sdk iphonesimulator6.1    

和错误信息:

clang: error: invalid architecture 'arm' for deployment target '-mios-simulator-version-min=5.0'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

我该如何解决?谢谢!

4

2 回答 2

5

Just solved a similar problem by following these steps:

  1. adding i386 into the Valid Architectures in the TARGETS section
  2. adding -arch i386 In the xcodebuild command arguments
于 2013-06-28T13:12:06.543 回答
1

我遇到了同样的问题,@thomas 的修复对我有用。如果有人需要完整的脚本,请在此处查看我的答案xcodebuild test command for using with jenkins doesn't work

于 2013-08-20T00:33:28.913 回答