Re: Command-line builds vs. Xcode preferences
Re: Command-line builds vs. Xcode preferences
- Subject: Re: Command-line builds vs. Xcode preferences
- From: Mike Shields <email@hidden>
- Date: Thu, 06 Jan 2011 19:36:33 -0500
Drop the "" around the variables and it should work. As well, DSTROOT affects TARGET_BUILD_DIR, so set that vs TARGET_BUILD_DIR directly.
This is what I've got in my buildscript that builds to a non-standard build location
xcodebuild -configuration Release DSTROOT="${RELEASE_BUILD_ROOT}" SYMROOT="${RELEASE_BUILD_ROOT}" OBJROOT="${RELEASE_BUILD_ROOT}"
On Jan 6, 2011, at 3:25 PM, Mel Walker 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"
>
> --
> 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
_______________________________________________
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