Re: Build Scripts
Re: Build Scripts
- Subject: Re: Build Scripts
- From: Chris Hanson <email@hidden>
- Date: Sat, 25 Aug 2012 13:27:34 -0700
On Aug 25, 2012, at 12:52 PM, koko <email@hidden> wrote:
> I have a build script:
>
> #!/bin/bash
> cd /volumes/repos/_working/LibZLIB/_XC42
> echo "Buliding LibZLIB Release"
> xcodebuild clean build -target LibZLIB -configuration Release
> echo "Finished Buliding LibZLIB Release"
>
>
> How can I specify the version of xcode to be called by xcodebuild?
You can use xcrun(1) and the DEVELOPER_DIR environment variable to do that:
% export DEVELOPER_DIR=/Path/To/An/Xcode.app/Contents/Developer
% xcrun xcodebuild
To make those changes more permanent, you can use xcode-select:
% sudo xcode-select -switch /Path/To/An/Xcode.app
or
% sudo xcode-select -switch /Path/To/An/Xcode.app/Contents/Developer
Hope this helps.
-- Chris
_______________________________________________
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