I’m trying to compile the Box2D.xcodeproj from the box2d svn repo. When I loaded up the project I had a warning saying that:
Missing SDK in target Box2D:
iphoneos2.2
And when I tried compiling I got two errors:
Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
edit: I poked around a bit more and set the target sdk to be iphoneos4.3 (latest) and now I’m getting just one error:
[BEROR]No architectures to compile for
(ONLY_ACTIVE_ARCH=YES, active
arch=i386, VALID_ARCHS=armv7).
Any ideas why?
Have you tried going to the Box2D project settings, and changing the selected SDK from “iphoneos2.2” to “Latest iOS” (or whatever you happen to be using in your other projects that build successfully)?
Edit
After your update, it appears that Box2D is configured to build only for the device, and you are attempting to build it for the iPhone simulator. You can test this by trying to build and run on a device (specifically, an iPhone 3GS or above). For a better fix, edit your Box2D project some more, and disable the “Build active architecture only” option, and add i386 and armv6 to your list of valid target architectures. In theory that should clear up the remaining issue.