首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在CocoaPods xcode8.1中找到规范

无法在CocoaPods xcode8.1中找到规范
EN

Stack Overflow用户
提问于 2016-11-05 12:24:13
回答 1查看 326关注 0票数 0

我在“pod安装”和“pod更新”中都有错误。

准备工作

分析相依性

检查目标以集成使用ARCHS设置来构建目标Pods-pojectnam:()的体系结构

查找Podfile更改

  • MBProgressHUD

解决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%之后停止。

EN

回答 1

Stack Overflow用户

发布于 2017-01-29 19:01:21

直接指着盖特回购对我有用。例如,用podfile中的下一行替换顶部:

代码语言:javascript
复制
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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40438213

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档