swift - 使用 Cocoapods 时 Generamba 设置失败
问题描述
只有在使用 cocoapods 时(运行 pod install 后),当设置 .xcodeproj 的路径时,generamba 设置失败并显示以下消息。
The path to a .xcodeproj file of the project is 'GrambaSample.xcodeproj'. Do you want to use it? (yes/no) yes
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object.rb:321:in `configure_with_plist': [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa. (RuntimeError)
不使用 cocoapods 不会出现此错误。
如何在使用 cocoapods 时设置 Generamba。
解决方案
为了避免这个问题,你应该通过执行将 CocoaPods 更新到最新的 beta 版本
gem install cocoapods --pre
CocoaPods 的最新 beta 版本现在使用 inputFileListPaths 和 outputFileListPaths。
更多信息请参见.xcfilelist Support
推荐阅读
- amazon-cloudwatch - 如何计算 AWS CloudWatch 指标中的唯一维度?
- javascript - 如何从javascript和python中的数组生成和总结随机数
- angular - 组件请求时获取请求返回订阅者
- sql - 当结果已被过滤以匹配我的日期格式(Oracle SQL)时,为什么这个 to_date 不起作用
- c - 管道的解释
- shell - 使用 unix shell 脚本/Python 解析 json 类型的文件以找出特定值
- python - 尝试使用 vscode 在 anaconda(python 3.8.5)中没有已知父包的相对导入
- sql-server - Perl 与 mssql 服务器的连接
- python - 如何使此代码在 Tkinter 中用于多项选择测验?
- html - 当父 div 包含特定单词时从 HTML 中提取值(多嵌套 div)