Command-line builds vs. Xcode preferences
Command-line builds vs. Xcode preferences
- Subject: Command-line builds vs. Xcode preferences
- From: Mel Walker <email@hidden>
- Date: Thu, 6 Jan 2011 12:25:57 -0800
I have inherited a complicated xcode project with many subprojects building many frameworks and plugins. I have been tasked with getting it building on a buildbot, so I need to get it building properly from the command line. The catch: building it from inside Xcode requires the "Place Build Products in Customized Location" set from the Building pane in Xcode preferences, or it will not build properly.
How does that setting translate to the command line? I've been pouring through the documentation, but my attempts have all resulted in bad builds.
This works from my machine (but not the buildbot):
xcodebuild -project "MyApp.xcodeproj" -target "MyApp" -configuration "Release"
These do not work at all:
xcodebuild -project "MyApp.xcodeproj" -target "MyApp" -configuration "Release" "DEPLOYMENT_LOCATION=NO" "TARGET_BUILD_DIR=/Users/buildbotuser/Desktop/BUILDER/build" "OBJROOT=/Users/buildbotuser/Desktop/BUILDER/build-objects"
xcodebuild -project "MyApp.xcodeproj" -target "MyApp" -configuration "Release" "DEPLOYMENT_LOCATION=NO" "TARGET_BUILD_DIR=/Users/buildbotuser/Desktop/BUILDER/build" "SYMROOT=/Users/buildbotuser/Desktop/BUILDER/build" "OBJROOT=/Users/buildbotuser/Desktop/BUILDER/build-objects"
--
Mel Walker <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden