0

我在“pod install”和“pod update”中都遇到错误

准备中

分析依赖关系

检查要集成的目标 使用ARCHS设置来构建目标架构Pods-pojectnam:(``)

查找 Podfile 更改

  • MBProgressHUD

解决Podfile [!]的MBProgressHUD (~> 0.9.2) 依赖handle_resolver_error' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:65:in关系/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:57:resolve_dependencies'/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/libresolve' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:723:in中的块/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:721:inresolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:76:in analyze' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:236:inanalyze' /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:insection' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods /installer.rb:149:in resolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:110:ininstall!' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/install.rb:37: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'/usr/local/bin/pod:23:in run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in'load' /usr/local/bin/pod:23:in

这是错误日志。我尝试再次安装 cocoapods gem,删除主仓库但没有运气。我也尝试过手动克隆 git 规格,但它没有在 90% 后停止

4

1 回答 1

0

直接指向 git repo 对我有用。例如,将第一行替换为 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 的答案

于 2017-01-29T19:01:21.560 回答