Re: Command-line builds vs. Xcode preferences
Re: Command-line builds vs. Xcode preferences
- Subject: Re: Command-line builds vs. Xcode preferences
- From: Mark Wagner <email@hidden>
- Date: Thu, 6 Jan 2011 12:49:03 -0800
On Thu, Jan 6, 2011 at 12:25, Mel Walker <email@hidden> wrote:
> 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"
Have you tried
DEPLOYMENT_LOCATION=NO
TARGET_BUILD_DIR="/Users/buildbotuser/Desktop/BUILDER/build"
SYMROOT="/Users/buildbotuser/Desktop/BUILDER/build"
OBJROOT="/Users/buildbotuser/Desktop/BUILDER/build-objects" xcodebuild
-project "MyApp.xcodeproj" -target "MyApp" -configuration "Release"
That's the normal way of passing environment variables to a
command-line program.
--
Mark
_______________________________________________
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