无法找到CocoaPods的规范

时间:2016-11-17 09:00:02

标签: ios swift cocoapods

我在安装cocoa-pods时遇到了问题

-(n-1)distance

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。但我必须通过以下程序解决我的问题。

   source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '9.0'

    target 'Test' do

      use_frameworks!

#    pod 'Alamofire', '~> 4.0'
     pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'

#    pod 'SwiftyJSON' , '~> 3.1'
     pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'

#     pod 'SideMenu' '~> 2.0'
      pod 'SideMenu', :git => 'https://github.com/jonkykong/SideMenu.git'

#     pod 'SDWebImage', '4.0.0-beta2'
      pod 'SDWebImage', :git => 'https://github.com/rs/SDWebImage.git'

#     pod 'SwiftDate', '~> 4.0'
      pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate'



end

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '3.0'
     end
    end
  end

Links for more information

答案 1 :(得分:0)

specs repo最近被分片:

http://blog.cocoapods.org/Sharding/

如果您不使用最新的CoacoPods:

在您的广告连播文件顶部使用source https://github.com/CocoaPods/Old-Specs

我经历了同样的事情:

Unable to install pods using a legacy Cocoapods version