cocapods添加第三方库遇到的问题

问题一:终端显示:[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

解决:不要使用文本编辑去编辑Podfile,使用Xcode编辑,或者使用终端vi命令去编辑。或者输入格式错误,没输入运行版本:$platform:ios, ‘8.0‘

问题二:在运行Podfile报错:[!] Invalid `Podfile` file: syntax error, unexpected ':', expecting end-of-input  platform : iOS

解决:由于Podfile中文本格式不对导致,重新在vi命令下去编辑文本。

问题三:当输入pod install命令:cocoadPod updating local specs repositories 卡住

解决:pod install  换成pod install --verbose --no-repo-update这个命令,前面的命令被墙了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容