1、报错内容
当使用coacoapod执行指令pod install 时报错
RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
2、需要执行下面指令
sudo gem update xcodeproj
在执行的时候又报找不到数据源的错误
ERROR:Whileexecuting gem ... (Gem::RemoteFetcher::FetchError) bad response Not Found404(https://gems.ruby-china.org/specs.4.8.gz)
于是删除gem源:
gem sources --remove https://gems.ruby-china.org/
修改gem源:
gem sources -a https://gems.ruby-china.com
查看gem源是否是最新的:
gem sources -l
3、更新之后重新执行
sudo gem update xcodeproj 后阔以正常更新库