首页 > 解决方案 > 使用 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。

标签: swiftrubyxcodecocoapods

解决方案


为了避免这个问题,你应该通过执行将 CocoaPods 更新到最新的 beta 版本

gem install cocoapods --pre

CocoaPods 的最新 beta 版本现在使用 inputFileListPaths 和 outputFileListPaths。

更多信息请参见.xcfilelist Support


推荐阅读