在pod install
时忽然失败,出现下面的提示。(失败后自动生成的模板,信息通过简化)git
/usr/local/bin/pod install
复制代码
很明显,这一部分是问题采集github
CocoaPods : 1.5.3
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
RubyGems : 2.5.2.3
Host : Mac OS X 10.14 (18A391)
Xcode : 10.0 (10A255)
Git : git version 2.17.1 (Apple Git-112)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 977a3a6f500965fa8c8aef1380337891257e47e7
复制代码
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
复制代码
这里会将当前工程中的Podfile
文件内容列出xcode
RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa. If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new /Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/lib/xcodeproj/project/object.rb:321:in `configure_with_plist'
...更多的路径信息
/usr/local/bin/pod:22:in `load' /usr/local/bin/pod:22:in `<main>'
复制代码
新项目,在集成Fabric
时,新建了RunScript
。 后来运行pod install
时候就出现了这个错误。经排查是由于Xcode10
新建RunScript
时多出了Xcodeproj
不认识的属性"inputFileListPaths"=>[], "outputFileListPaths"=>[]
。ruby
关于
Xcodeproj
能够查看这里bash
详细的说明能够参考这里app
刚开始觉得是Cocoapods
版本不支持Xcode10
致使的,结果sudo gem install cocoapods
更新到1.5.3
版本后,问题仍是出现了。ui
在了解到Cocoapods
的组件后,经过sudo gem install xcodeproj
更新xcodeproj
组件后,问题解决。this
以前的Ruby China
提供的镜像地址https://gems.ruby-china.org
已经不能使用了。请及时更换到https://gems.ruby-china.com/
spa