【发布时间】:2012-07-31 09:46:04
【问题描述】:
当我这样做时:
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,取得了巨大的成功。见:stackoverflow.com/questions/9258344/…
标签: iphone ios xcode cocoa-touch agvtool