當我這樣做:AGVTool新版本,什麼版本並不對應
agvtool new-version -all 99
它更新我的Info.plist文件。但是,如果我這樣做:
agvtool what-version
或
agvtool next-version
我得到這個錯誤:
There does not seem to be a CURRENT_PROJECT_VERSION key set for this project.
Add this key to your target's expert build settings.
爲什麼會出現這種不對應。我是否必須使用plist命令行工具才能檢索我的應用程序的當前版本。好奇地agvtool what-marketing-version
工作正常。具有諷刺意味的agvtool似乎並不有一個版本本身;-)
我已經使用'agvtool'沒有問題結束存在的密鑰。我使用'Plistbuddy'代替,取得了巨大的成功。請參閱:http://stackoverflow.com/questions/9258344/xcode-better-way-of-incrementing-build-number – trojanfoe 2012-07-31 10:08:17