我在“pod安装”和“pod更新”中都有错误。
准备工作
分析相依性
检查目标以集成使用ARCHS设置来构建目标Pods-pojectnam:()的体系结构
查找Podfile更改
解决Podfile的依赖关系!无法在解决“/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:57:in resolve' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:723:in块in resolve_dependencies”/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/中找到MBProgressHUD (~> 0.9.2) handle_resolver_error' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:65:in救援规范/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:76:in section' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:721:inresolve_dependencies‘user_interface.rb:64:in analyze' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:236:in分析’/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:150:in block in resolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:in节‘/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:149:在/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/install.rb:37:in run' /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:334:in中运行‘/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in’/usr/local/bin/pod:23:in load' /usr/local/bin/pod:23:in‘
这是错误日志。我已经尝试过安装cocoapods宝石,移除主回购,但没有运气。另外,我也尝试过手动克隆git规范的,但它不会在90%之后停止。
发布于 2017-01-29 19:01:21
直接指着盖特回购对我有用。例如,用podfile中的下一行替换顶部:
replace this --> pod 'Alamofire', '~> 4.0'
with this--> pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'
replace this --> pod 'SwiftyJSON' , '~> 3.1'
with this--> pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'有关这方面的更多信息,请参阅RaziPour1993的答案here。
https://stackoverflow.com/questions/40438213
复制相似问题