打开终端,进入项目所在的目录,也就是和Podfile在同一目录下,输入以下命令(由于已经有Podfile,所以不需要再创建Podfile):
pod update
过几秒(也许需要十几秒,取决于你的网络状况)之后,终端出现:
Update all podsRe-creating CocoaPods due to major version update.Updating local specs repositoriesCocoaPods 1.0.0.beta.6 is available.To update use: `sudo gem install cocoapods --pre`[!] This is a test version we'd love you to try.For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.0.0.beta.6Analyzing dependenciesDownloading dependenciesInstalling DACircularProgress (2.3.1)Installing MBProgressHUD (0.9.2)Installing MDRadialProgress (1.3.2)Installing MJRefresh (3.0.8)Installing MOBFoundation_IDFA (1.3.1)Installing MWPhotoBrowser (2.1.1)Installing SDWebImage (3.7.5)Installing SMSSDK (2.0.4)Installing UMengAnalytics-NO-IDFA (3.4.7)Generating Pods projectIntegrating client projectSending statsPod installation complete! There are 6 dependencies from the Podfile and 9 total pods installed.编译程序,还是报错,找不到文件目录
必须更新Profile 文件
还是项目目录下,执行终端命令:
cat Profile
找到项目里面的Profile 文件,以下面的格式修改
platform :ios, '6.1'
pod 'SDWebImage', '~> 3.7.5'
pod 'MBProgressHUD', '~> 0.9.2'
pod 'SSKeychain','~> 1.4.0'
pod 'FMDB','~> 2.6.2'
use_frameworks!
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.6.3'
pod 'Masonry','~> 1.0.0'
platform :ios, '7.0'
pod 'KINWebBrowser','~> 1.3.2'
use_frameworks!
这里的第三方库的版本号和上面的最新的一致就行
然后通过.xcworkspace 运行项目,就OK了