CocoaPods报错及解决方法记录
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+-+%2FUsers%2Fquan%2FDesktop%2F%E8%AF%BE%E5%A0%82%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%2F8+-+%E7%BD%91%E6%98%93%E6%96%B0%E9%97%BB%2F%E4%BB%A3%E7%A0%81%2F02-04%E7%BD%91%E6%98%93%E6%96%B0%E9%97%BB%EF%BC%88%E8%BD%AE%E6%92%AD%E5%99%A8%EF%BC%89%2FPods%2FHeaders%2FPrivate%2FAFNetworking%2FAFHTTPRequestOperation.h&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
//报错环境:编译前段时间使用CocoaPods管理的一个工程,发现报错说找不到第三方框架,纳尼!于是果断更新下,报了一个更让我莫名其妙的错,折腾了近2个小时后,网上的各种方法已经试遍了..最后忘记在哪看到的,说是CocoaPods的版本兼容问题,目前版本在Github上找不到仓库地址,后来查看了下当时项目的版本号是(0.38.1),而现在版本号是(0.38.2)
解决方法:
$ sudo gem uninstall cocoapods (卸载当前的CocoaPods)
$ sudo gem install cocoapods -v 0.38.1 (安装0.38.1版本的CocoaPods)
然后编译通过~
/************************************************************************************************/
如果之前的项目使用CocoaPods无法更新框架,直接删除之前的框架文件,使用CocoaPods重新下载最新的就可以运行了
/************************************************************************************************/
升级最新10.11系统后,CocoaPods无法使用,报这个错
The command path could not be resolved
Resolved command path for "pod" is invalid.
Expanded GEM_PATH: /usr/bin
解决方案,直接重装CocoaPods然后在命令行添加框架即可(原有工程无法再xcode里面使用CocoaPods来下载框架,因为升级系统,删掉了某些文件,就使用命令行添加框架即可!)