0
4

2 回答 2

0

我发现我们可以使用 plistbuddy 来设置 info.plist 的值,比如 /usr/libexec/PlistBuddy -c "set:CFBundleShortVersionString ${version_version}" ${plist_path}

plistbuddy 是一个可以很好地修改plist 文件的工具,使用/usr/libexec/PlistBuddy -h 来查找帮助。希望可以帮助其他人!

于 2013-08-29T04:05:05.570 回答
0

You can inject custom build settings by passing KEY=VALUE arguments to xcodebuild. You can then put these into Info.plist values with ${MY_BUILD_SETTING}.

于 2013-08-28T09:42:53.600 回答