Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Xcode and agvtool

Xcode and agvtool
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Wisconsin
Status: Offline
Reply With Quote
Oct 25, 2003, 01:59 PM
 
It seems agvtool was not upgraded to work with Xcode. If you try to use it on an xcode project, it will not recognize it. I edited the agvtool so it does see .xcode projects, but there is still one problem. It upgrades CURRENT_PROJECT_VERSION but no longer upgrades CFBundleVersion. If I understand this correctly, ProjectBuilder projects stored its Info.plist file in the project file. Xcode projects keep a separate Info.plist file. Anyone know how to fix this so it updates Info.plist? To get agvtool to see xcode projects, just change all the .pbproj extensions to .xcode. Be sure you make a copy of agvtool first though. This is where it upgrades CFBundleVersion:
if [ z"${UPDATEALL}" = z"YES" ] ; then
echo "Also setting CFBundleVersion key (assuming it exists)"
echo
sed "/^[ ]*<key>CFBundleVersion.*$/,/.*$/s/\(^[ ]*<string>\)\(.*\)\(<\/string>.*$\)/\1${NEW_VERSION_NUM}\3/" "${PROJECT}.new2"
If anyone knows a solution let me know.
     
seppak  (op)
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Wisconsin
Status: Offline
Reply With Quote
Oct 26, 2003, 10:49 PM
 
Well it took me awhile but I figured out how to get it to update CFBundleVersion in the plist file. If anyone else has this problem let me know. One other quick question: how do you turn off debugging symbols. When I show the detailed build results they are always on regardless of whether I am doing a development or deployment build. Perhaps my target was not updated properly...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2