当我尝试运行该应用程序时出现错误:打印:
Entry, ":CFBundleShortVersionString", Does Not Exist Parse Error: Unclosed Quotes Value Required for Set Command Command /bin/sh failed with exit code 1
这是我应用中该部分的编码
#!/bin/sh
VERSION=`/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Translator/Translator-Info.plist`
/usr/libexec/PlistBuddy -c "Set :PreferenceSpecifiers:0:DefaultValue $VERSION" Translator/Settings.bundle/Root.plist
我不知道怎么了!!
最佳答案
这意味着在您的 info.plist 文件中,“Bundle versions string, short”键/值不存在。将其添加到 info.plist 中并重新编译。
关于ios - Xcode 5.1.1 shell脚本调用错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24302422/