Take the 2-minute tour ×

I am trying to build Xcode project from command line, using iphonesimulator as SDK. Here is the command line:

xcodebuild -scheme SchemeName -configuration Debug -sdk iphonesimulator PLATFORM_NAME=iphonesimulator clean build

However, when I add a post-build action in Xcode like:


it always outputs "PLATFORM_NAME: iphoneos" and not iphonesimulator.

Is this a bug, or there is something wrong in my build configuration? Thanks

share|improve this question
add comment

Your Answer



Browse other questions tagged or ask your own question.