ios - 无法找到 CocoaPods 的规范

标签 ios swift cocoapods

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

[!] Unable to find a specification for `SideMenu~> 2.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

关于ios - 无法找到 CocoaPods 的规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40650496/

相关文章:

ios - 如何解决此错误,例如 Invalid `Podfile` file : [! ] Unsupported options `{:exclusive=>true}` for target

ios - Xcode 泄漏工具卡在 MapkKit/CllocationManager Ios8 上

ios - 静默警告“无法为[symbol]创建紧凑展开:堆栈subl指令与侏儒堆栈大小太大不同”

ios - 将数据从类传递到 View Controller 的同一实例

ios - 使用 CocoaPods 安装模块后无法导入模块

xcode - pod install 列出了大量不在我的 podfile 中的 pod

ios - Swift 3 - 存储用户位置并从不同的 View Controller 调用它

ios - 如何从不同的 swift 类重置变量/步进值

swift - 无法调用非函数类型的值 'AnyObject!?"Swift

cocoapods - 多个目标取决于相同的 cocoapods