Re: Did xcodebuild change in 4.3?
Re: Did xcodebuild change in 4.3?
- Subject: Re: Did xcodebuild change in 4.3?
- From: Joar Wingfors <email@hidden>
- Date: Wed, 28 Mar 2012 16:15:59 -0700
Right you are. Sorry about that!
If you can't figure this out, please file a bug report:
<http://developer.apple.com/bugreporter/>
Joar
On 28 mar 2012, at 14:50, Jeremy Derr wrote:
> From the xcode-select manpage:
>
>> -switch xcode_path
>> Sets the path to the current Xcode, e.g. "/Xcode4.2". This command
>> must be run with superuser permissions, and will affect all users
>> on the system. To set the path without superuser permissions or
>> only for the current shell session, use the DEVELOPER_DIR environ-
>> ment variable instead.
>
> Setting DEVELOPER_DIR is a valid way of accomplishing the switch and xcode-select is not required.
>
> You can test this yourself with:
>
>> DEVELOPER_DIR=/foo/ xcodebuild -version
>
> At any rate, the behavior continues when using xcode-select to set this for all users, as well.
>
> Jeremy Derr
> DevOps
>
> Mutual Mobile
> m › 512.426.0702
> w › mutualmobile.com
>
>
>
>
>
>
>
>
>
>
>
> On Mar 28, 2012, at 4:34 PM, Joar Wingfors wrote:
>
>> You need to be either using xcode-select to switch between versions of Xcode, or directly (using the full path) invoke the copy of xcodebuild that you want to use from the respective install of Xcode.
>>
>> Doing this, do you still see the same issue?
>>
>> Joar
>>
>> On 28 mar 2012, at 13:54, Jeremy Derr wrote:
>>
>>> In our CI system, the follow is eventually invoked:
>>>
>>> xcodebuild -sdk iphoneos -project SomeProject.xcodeproj -target SomeTarget -configuration Release
>>>
>>> In 4.2 and all previous versions, this has worked beautifully. After upgrading to Xcode 4.3, however, xcodebuild seems unable to discover provisioning files correctly.
>>>
>>> # build with 4.2
>>> DEVELOPER_DIR=/Developer xcodebuild -sdk iphoneos -project SomeProject.xcodeproj -target SomeTarget -configuration Release
>>> [ ... ]
>>> ** BUILD SUCCEEDED **
>>>
>>> # build with 4.3 instead
>>> DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -sdk iphoneos -project SomeProject.xcodeproj -target SomeTarget -configuration Release
>>>
>>> === BUILD NATIVE TARGET SomeTarget OF PROJECT SomeProject WITH THE DEFAULT CONFIGURATION (Release) ===
>>> Check dependencies
>>>
>>> [BEROR]Code Sign error: a valid provisioning profile matching the application's Identifier 'com.project.appname
>>> ' could not be found
>>>
>>> ** BUILD FAILED **
>>>
>>> The following build commands failed:
>>> Check dependencies
>>> (1 failure)
>>>
>>> Oddly enough, building the same project – with no code or config changes – will succeed with nary a warning, even in Xcode 4.3.
>>>
>>> Any ideas what might be causing this behavior from xcodebuild?
>>>
>>> Jeremy Derr
>>> DevOps
>>>
>>> Mutual Mobile
>>> m › 512.426.0702
>>> w › mutualmobile.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
_______________________________________________
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