Re: Build from IDE vs Script
Re: Build from IDE vs Script
- Subject: Re: Build from IDE vs Script
- From: Eric Wing <email@hidden>
- Date: Thu, 06 Sep 2012 16:26:22 -0700
On 9/6/12, koko <email@hidden> wrote:
> I have a Scheme which builds one Target. The destination of the Scheme is
> iOS Device. The Scheme name is iOS Device.
>
> This script:
>
> #!/bin/bash
> cd /volumes/repos/_working/LibZLIB/_XC44
> echo "Buliding LibZLIB Release"
> export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
> xcrun xcodebuild clean build -scheme "iOS Device" -configuration Release
> xcrun xcodebuild clean build -scheme "iOS Device" -configuration Debug
>
> Release-iphoneos
> Debug-iphoneos
>
> as I expect.
>
> I have another Scheme which builds the same Target but its destination is
> iPhone 5.1 Simulator. The Schemem name is iOS Simulator.
>
> This script:
>
> #!/bin/bash
> cd /volumes/repos/_working/LibZLIB/_XC44
> echo "Buliding LibZLIB Release"
> export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
> xcrun xcodebuild clean build -scheme "iOS Simulator" -configuration Release
> xcrun xcodebuild clean build -scheme "iOS Simulator" -configuration Debug
>
> will not build
>
> Release-iphonesimulator
> Debug-iphonesimulator
>
>
> Can anyone tell me why not?
>
> However, if I choose Scheme iOS Simulator with destination iPhone 5.1
> Simulatror from the IDE and build i do get:
>
> Release-iphonesimulator
> Debug-iphonesimulator
>
> I would like to build all four of these from a script.
>
> Any suggestions on how to accomplish this?
>
> -koko
>
This stuff gives me a migrane thinking about it because I've spent so
much time fighting it over the years. So forgive me if my answer is a
little vague because I have trouble remembering all the details.
I never got the scheme stuff working too well for me, but fortunately
some of the stuff from the Xcode 3 days still works for me.
For the moment, we just use the -target, -configuration, and -sdk switches.
For the simulator, I think you want to specify the -sdk to something like:
-sdk iphonesimulator
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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