我在“pod install”和“pod update”
中都收到错误准备
分析依赖关系
检查要整合的目标
使用ARCHS
设置来构建目标Pods-pojectnam
的架构:(``)
查找Podfile更改
解决Podfile
的依赖关系
[!]无法找到MBProgressHUD (~> 0.9.2)
的规范
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:442:in 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/resolver.rb:57:in resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:723:in
block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:in section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:721:in
resolve_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:in
analyze'
/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
section'
/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:in
安装!'
/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
run'
/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:load'
/usr/local/bin/pod:23:in
'
这是错误日志。我已经尝试再次安装cocoapods gem,删除主回购但没有运气。 此外,我已经尝试手动克隆git规格,但它没有在90%后停止它停止
答案 0 :(得分: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的回答here