agvtool processes scripts in Run Script phase: How to stop it?
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