• 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
agvtool processes scripts in Run Script phase: How to stop it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

agvtool processes scripts in Run Script phase: How to stop it?


  • Subject: agvtool processes scripts in Run Script phase: How to stop it?
  • From: Markus Spoettl <email@hidden>
  • Date: Fri, 31 Jan 2014 21:50:13 +0100

Hi,

I'm using agvtool to increment build numbers and set versions in my project. Works fine, but I now have a new custom Run Script build phase in my target's build phases and agvtool seems not to like it:

The invocation of "agvtool bump -all" produces this output:

----------------------------
Setting version of project MyApp to:
    192.

Also setting CFBundleVersion key (assuming it exists)

Updating CFBundleVersion in Info.plist(s)...

Cannot find "MyApp.xcodeproj/../`/usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" "$INPUT"`nBUNDLE_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion"[...]

Updated CFBundleVersion in "MyApp.xcodeproj/../MyApp-Info.plist" to 192
----------------------------

The shell script's first couple of lines are:

----------------------------
# Receigen binary
RECEIGEN="/Applications/Receigen.app/Contents/MacOS/Receigen"

# Extract Info.plist information
INPUT="$INFOPLIST_FILE"
BUNDLE_ID=`/usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" "$INPUT"`
BUNDLE_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INPUT"`
[...]
----------------------------

So agvtool prints the entire content of the shell script following the line

INPUT="$INFOPLIST_FILE"

If I remove that line for testing purposes, agvtool behaves correctly.

Is there a way to tell agvtool to leave my script alone? Or failing that, is there a way to tell agvtool to ignore the line in the script that it chokes on? Why does agvtool even read the script in the first place?

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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


  • Prev by Date: Re: Why does 'Commit' not add new files by default?
  • Next by Date: Re: Why does 'Commit' not add new files by default?
  • Previous by thread: Re: Why does 'Commit' not add new files by default?
  • Index(es):
    • Date
    • Thread