• 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: Run Script with agvtool canceled build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Run Script with agvtool canceled build
      • From: Bernie Maier <email@hidden>
  • Prev by Date: Re: Both Xcode or codesign fail behind a proxy (timestamp not found)
  • Next by Date: Re: Run Script with agvtool canceled build
  • Previous by thread: Re: Run Script with agvtool canceled build
  • Next by thread: Re: Run Script with agvtool canceled build
  • Index(es):
    • Date
    • Thread