更新了 CocoaPods 后,再执行 "pod install" 时报了如下错误:

[!] The dependency `AFOnoResponseSerializer` is not used in any concrete target.
The dependency `SDWebImage` is not used in any concrete target.
The dependency `SSKeychain` is not used in any concrete target.
The dependency `ReactiveCocoa` is not used in any concrete target.
The dependency `GPUImage` is not used in any concrete target.
The dependency `MBProgressHUD` is not used in any concrete target.

如图所示:

【iOS】更新 CocoaPods 后 Podfile 报错_cocoa

 

原因是 Podfile 的格式改了。新的格式如下:

【iOS】更新 CocoaPods 后 Podfile 报错_官网_02

官网地址:https://cocoapods.org/

 

此外,使用

pod search **

命令,可以查看使用的第三方库的版本号等信息。

 

参考:

http://blog.csdn.net/sjl_leaf/article/details/50506057

https://segmentfault.com/q/1010000000716129