cocoaPods使用中遇到的问题

以下是我用使用CocoaPods时遇到的问题
1:http ->https
Error fetching http://ruby.taobao.org/:
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
解决方案:把安装流程中 $gem sources -a http://ruby.taobao.org/   ---改为---->$gem sources -a https://ruby.taobao.org/
2:权限
ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
解决方案:苹果系统升级OS X EL Capitan后会出现的插件错误,将安装流程 4.安装CocoaPods 的 (1)sudo gem install cocoapods ——>改为sudo gem install -n /usr/local/bin cocoa pods
3:版本号
[!] Unable to satisfy the following requirements: - `AVOSCloud (~> 3.1.6.3)` required by `Podfile`
Specs satisfying the `AVOSCloud (~> 3.1.6.3)` dependency were found, but they required a higher minimum deployment target.
解决方案:安装流程:Podfile文件 中   platform:ios, ‘6.0’  后边的 6.0 是平台版本号 ,一定要加上
4 :[!] The dependency `AFNetworking (~> 3.1.0)` is not used in any concrete target.
原因:CocoaPods升级后,Podfile文件的内容格式要求发生了变化,必须指出指出所用第三方库的target。
解决方案:修改Podfile的内容

备注:1、在Podfile文件中需要明确指出使用第三方库的target;2、这里target后面跟的就是自己项目本身的Target;也就是项目中的tagrets中的那个项目名称
 
 
 
 

猜你喜欢

转载自blog.csdn.net/maolianshuai/article/details/51858648
今日推荐