终端输入 : sudo gem install -n /usr/local/bin cocoapods –pre
更新了CocoaPods后,在原来的工程中执行了pod install命令后,报这样的错误
The dependency `FMDB (~> 2.3)` is not used in any concrete target.
...
解决方法:
vim Podfile
打开podfile,将内容改成如下格式即可:
platform :ios, '8.0'
use_frameworks! #个别需要用到它,比如reactiveCocoa
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
end
保存退出后
执行 pod install 即可