• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Build Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build Scripts


  • Subject: Re: Build Scripts
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 25 Aug 2012 13:41:16 -0700

On Aug 25, 2012, at 1:27 PM, Chris Hanson <email@hidden> wrote:

>
> 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:

I should also mention that /usr/bin/xcodebuild in modern Xcode will basically call through xcrun itself, so you won’t need to xcrun it. This is not the case for all tools though, so using xcrun to execute developer tools from “the user’s Xcode” or “the specified Xcode” is a good habit to get into.

  -- 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


  • Follow-Ups:
    • Re: Build Scripts
      • From: koko <email@hidden>
References: 
 >Build Scripts (From: koko <email@hidden>)
 >Re: Build Scripts (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Build Scripts
  • Next by Date: Re: Code editing - pane splitters
  • Previous by thread: Re: Build Scripts
  • Next by thread: Re: Build Scripts
  • Index(es):
    • Date
    • Thread