更新第三方插件版本时终端pod install时出错,出错如下:
出错原因:
出这个错是告诉我们,我们所用的库没有指定target,它不知道用在哪里,所以就给报错了
权威解决在cocoapods官网地址
解决方案:
1.通过终端打开项目的Podfile文件
$open -e Podfile
2.在Podfile中指定target为所要更新的项目名,别忘结尾加end
3.保存关闭,再执行下pod install
ps.查资料Podfile还有另一种写法
platform :ios, '8.0'
#use_frameworks!个别需要用到它,比如reactiveCocoa
def pods
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
target 'MyApp' do
pods
end