CocoaPods 报错

简单说一下cocoapods 怎么安装的

雨夜  11:35:31

改源—》sudo gem install cocoapods—》pod setup

雨夜  11:35:58

如果ruby版本低的话要先升级

雨夜  11:37:02

pod setup之后 查看pod search afn 以及pod init 是否可用,都不能用重复以上步骤

雨夜  11:37:56

如果有些功能可以用有些不能用 sudo gem update --system——》重复以上步骤

雨夜  11:39:00

每次安装好最好都pod —version

雨夜  11:44:00

安装之前最好先翻墙,有备无患,还会出现一种情况,网速慢-无解

http://www.cnblogs.com/guanshenbao/p/5534578.html

最新安装

最新支持的ruby镜像(https://gems.ruby-china.org/)

platform :ios, '7.0' 

pod ‘AFNetworking’

pod ’SDWebImage’ 

pod ‘MMDrawerController’ 

pod ‘MJRefresh’

pod 'PPRevealSideViewController'

官方建议

platform :ios, '8.0'

use_frameworks!

target ‘MyApp’ do

  pod 'AFNetworking', '~> 2.6'

end

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 报错)