Re: Run Script with agvtool canceled build
Re: Run Script with agvtool canceled build
- Subject: Re: Run Script with agvtool canceled build
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 5 May 2017 09:46:35 +0700
>
>
>
> Gerriet M. Denkmann:
>
>> macOS 12.4, Xcode Version 8.3.2 (8E2002).
>>
>> This Run Script:
>>
>> # !/bin/sh
>>
>> OLD_VERSION=`xcrun agvtool what-marketing-version -terse1`
>> echo "old ShortVersionString = ${OLD_VERSION}"
>>
>> xcrun agvtool next-version -all
>>
>> always works.
>>
>> But in most cases it results in: “Build Release: Canceled” later on.
>>
>> No problem when the next-version line is commented out.
>>
>> What I am doing wrong?
>
> You are potentially modifying the project file while Xcode is still in the
> middle of building from it. Xcode quite possibly doesn't like that.
>
> - Bernie
Ok. This makes sense. agvtool does indeed modify the Info.plist and some Xcode variables (e.g. CURRENT_PROJECT_VERSION).
But how to make this RunScript before Xcode starts building? Running it va Terminal is a solution, but not a very good one.
Are there other ways to increase the version automatically with each build?
Kind regards,
Gerriet.
_______________________________________________
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