Xcode工程使用CocoaPods管理第三方库新建工程时出现错误

工程使用CocoaPods管理第三方库,在新的目录update版本的时候出现如下问题
 
问题1描述:
diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
 
解决办法:
进入到工程目录重新pod install一下
 
上面步骤进行过之后运行工程可能会有下面错误,那是因为当前用户的权限所致。
问题2描述:
/Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/Pods-resources.sh: line 5: /Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/resources-to-copy-GeneralProject.txt: Permission denied
 
Pod没有权限:
如果没有权限,可执行下面代码

sudo chmod 777 Pods  


在vim podFile 时 如果写成这个样子

platform :ios, "7.0"
pod 'AFNetworking'

在每次更新AFNetworking时,如果在git 上下拉的项目   会导致AFNetworing 版本自动跟新从而可能导致app不可用

所以在写项目时能带上该开源库的版本号是最好的

例如

platform :ios, "7.0"
pod 'AFNetworking', '~> 2.5.0'

或者可以限定下载的网址例如

pod 'AFNetworking-RACExtensions', :git => 'https://github.com/CodaFi/AFNetworking-RACExtensions.git', :tag => '0.1.5' 


附上一份我常用的第三方库,祝大家cocopod 用的开心

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.0"
inhibit_all_warnings!


pod 'AFNetworking', '~> 2.5.0'
pod 'ReactiveCocoa','~>2.0.0'
pod 'ConciseKit'
pod 'RETableViewManager'
pod 'REFrostedViewController'
pod 'Mantle','~>2.0.0'
pod 'SVProgressHUD', :head


pod 'pop'
pod 'Objection'
pod 'AFNetworking-RACExtensions', :git => 'https://github.com/CodaFi/AFNetworking-RACExtensions.git', :tag => '0.1.5' 






pod 'CHTumblrMenu'
pod 'NYSegmentedControl'


pod 'INTULocationManager'
pod 'RWDropdownMenu'
pod 'NSDate+TimeAgo'
pod 'SocketRocket', '~> 0.3.1-beta2'
pod 'HexColors'


pod 'SDWebImage'
pod 'SDWebImage-ProgressView'
pod 'UIActivityIndicator-for-SDWebImage'
pod 'UICKeyChainStore'


pod 'hpple', '~> 0.2.0'


#Bootstrap
pod 'KZBootstrap'


#AutoLayout
pod 'Masonry'
pod 'PureLayout'


#alert
pod 'SDCAlertView'
pod 'MBProgressHUD'


#refresh
pod 'MJRefresh','~>1.3.0'


# KIF Test
target 'Acceptance Tests', :exclusive => true do
    pod 'KIF', '~> 3.0'




end



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值