Podfile书写

 

更新Xcode后,从SVN check out项目后发现的这个问题,具体的error当初忘记截下来了,后面有机会再来补充。大概的意思就是路径不对,我先是更新安装了一遍Pod,发现并没有什么卵用....最后我锁定在Podfile这个文件里。

 

这是原来的Podfile内容,其实这样写也是对的,但是容易出现问题,应该指定一下。

 1 platform :ios, "7.0"
 2 
 3 pod 'SVProgressHUD','~> 1.1.3'
 4 pod 'AFNetworking','~> 2.6.0'
 5 pod 'IQKeyboardManager'
 6 pod 'Masonry', '~> 0.6'
 7 pod 'FDFullscreenPopGesture', '~> 1.1'
 8 pod 'SDCycleScrollView','~> 1.3'
 9 pod 'SDWebImage', '~> 3.7.3'
10 pod 'MJRefresh'
11 pod 'HMSegmentedControl'

 

改成

 1 target '项目名称' do
 2 
 3 pod 'SVProgressHUD','~> 1.1.3'
 4 pod 'AFNetworking','~> 2.6.0'
 5 pod 'IQKeyboardManager'
 6 pod 'Masonry', '~> 0.6'
 7 pod 'FDFullscreenPopGesture', '~> 1.1'
 8 pod 'SDCycleScrollView','~> 1.3'
 9 pod 'SDWebImage', '~> 3.7.3'
10 pod 'MJRefresh'
11 pod 'HMSegmentedControl'
12 
13 end

 

这样就可以解决了。

posted @ 2016-07-26 13:51  战神在路上  阅读(1943)  评论(0编辑  收藏  举报