This can be easily done using the xcodebuild command line:
$xcodebuild -target <target name> -configuration <configuration name> -sdk iphonesimulator build
$xcodebuild -target <target name> -configuration <configuration name> -sdk iphoneos build
Then, for your lipo goal, you can add a script build phase in which you can run two commands before combining them with lipo.
If your first two goals are separated just to create the right SDK, now you can remove one of them and run the same build command twice, installing only the other SDK. You should also consider running lipo in the Makefile, in which case you will not need a lipo target either.
considers
source
share