我想从box2d svn回购编译Box2D.xcodeproj。当我装了这个项目我有一个警告说:Box2D xcode项目编译器错误“命令/开发/平台/ iPhonePhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码1”
Missing SDK in target Box2D: iphoneos2.2
,当我试图编译我得到了两个错误:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
编辑:我戳了一下周围越来越设定的目标SDK成为iphoneos4.3(最新),现在我只得到一个错误:
[BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv7).
任何想法为什么?
在Xcode中,您应该能够获得有关该错误的更多详细信息。查看错误消息右侧的图标,使您可以显示编译器执行的命令行结果。 – sergio
@sergio我编辑了我的答案,那是你的意思? – tweetypi