问题描述
[!] The 'master' repo requires CocoaPods 1.0.0 - (currently using 0.39.0)
Update CocoaPods, or checkout the appropriate tag in the repo.
出错原因
没有更新到最新的cocoapods版本
解决方案
sudo gem install -n /usr/local/bin cocoapods –pre
问题描述
[!] The dependency `AFNetworking (~> 2.6.0)` is not used in any concrete target.
The dependency `AMapSearch (~> 4.1.0)` is not used in any concrete target.
The dependency `SDWebImage (~> 3.8.1)` is not used in any concrete target.
The dependency `MJRefresh (= 3.1.12)` is not used in any concrete target.
The dependency `MJExtension (~> 3.0.13)` is not used in any concrete target.
The dependency `BmobSDK (~> 1.7.2)` is not used in any concrete target.
The dependency `ReactiveCocoa (= 2.5)` is not used in any concrete target.
出错原因
podfile升级到最新版本,pod里的内容必须明确指出所用第三方库的target
解决办法
可以修改Podfile文件的配置文件,让它兼容不指定固定版本;且又不报错
platform :ios, '8.0'
inhibit_all_warnings!
target ‘Utilities’ do
pod 'AFNetworking', '~> 2.6.0'
pod 'AMapSearch', '~> 4.1.0'
pod 'SDWebImage', '~> 3.8.1'
pod 'MJRefresh', '3.1.12'
pod 'MJExtension', '~> 3.0.13'
pod 'BmobSDK', '~> 1.7.2'
pod 'ReactiveCocoa' , '2.5'
end