美文网首页
coacoapod报错记录

coacoapod报错记录

作者: 亮仔菲个 | 来源:发表于2019-05-05 10:31 被阅读0次

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 后阔以正常更新库

相关文章

网友评论

      本文标题:coacoapod报错记录

      本文链接:https://www.haomeiwen.com/subject/ddkcoqtx.html