在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