ios - Xcode 5.1.1 shell脚本调用错误

标签 ios xcode

当我尝试运行该应用程序时出现错误:打印:

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/

相关文章:

ios - Obj-C 在主视图 Controller 中启动应用程序时崩溃

ios - 将 UIButton 添加到 UITableView 的 detailTextLabel/右侧

ios - 如何从 IOS 中的 NSDictionary 加载 tableView?

ios - Swift IPv6 支持

iphone - 修改 xcode 字符串文件 post Archive : Converting Binary to UTF-8

ios - 在当前 View Controller 中关闭以前的模态视图 Controller

swift - 在 Xcode 12.0 中通过 Carthage 引入 iOS 框架

ios - 如何以编程方式滚动浏览 Collection View ?

iphone - 如何使用 MPMoviePlayerController 显示 "Loading Movie..."消息

ios - SwiftUI 如何将 DatePicker 与 'TimeStamp' 类型的变量绑定(bind)?