我遇到了https://github.com/betfair/aping-ios-sdk/issues/22中列出的问题。 Podfile看起来像:
platform :ios, '5.0'
pod 'BNGAPI'
这个Podfile在0.33.1版本的cocoapods上运行良好,但是开始失败了0.34.0.rc1版本的可可豆荚。 pod install --verbose
的完整堆栈跟踪如下所示:
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/executable.rb:70:in `execute_command'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/downloader.rb:9:in `execute_command'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/base.rb:152:in `block in executable'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/git.rb:65:in `block in clone'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/downloader.rb:40:in `block in ui_sub_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/downloader.rb:39:in `ui_sub_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/git.rb:63:in `clone'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/git.rb:29:in `download!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/base.rb:80:in `block in download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/downloader.rb:24:in `block in ui_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/downloader.rb:23:in `ui_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-0.7.2/lib/cocoapods-downloader/base.rb:78:in `download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer/pod_source_installer.rb:98:in `download_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer/pod_source_installer.rb:45:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:298:in `install_source_of_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:273:in `block (2 levels) in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/user_interface.rb:70:in `titled_section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:272:in `block in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:264:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:264:in `install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:116:in `block in download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:114:in `download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/installer.rb:91:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/command/project.rb:101:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/lib/cocoapods/command.rb:48:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.0.rc1/bin/pod:33:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
我已经尝试将我的Podfile指向特定的提交和分支,但我只是不断收到相同的错误消息。有问题的标签是2.0,已发布到https://github.com/betfair/aping-ios-sdk/tree/tags/2.0的github。它的规格可在https://github.com/CocoaPods/Specs/blob/master/Specs/BNGAPI/2.0/BNGAPI.podspec.json获得。
我的Podfile是否有任何错误指向BNGAPI的2.0版本?
FWIW,我正在使用0.35.0版本的cocoapods和ruby-2.0.0-p598版本的ruby。