1.使用pod init命令生成podfile. 2.cocoapods的版本太低,更新cocoapod版本:sudo gem install cocoa pods 转载于:https://www.cnblogs.com/moxuexiaotong/p/5761965.html