Reactive Cocoa for Swift 3.0



我正在从Swift 2更新一个项目。X到3.0。我有ReactiveCocoa版本v4.2.2通过迦太基安装。为了更新活性可可,我已经将购物车文件更新为

github "ReactiveCocoa/ReactiveCocoa" "master"

当我运行命令Carthage update时,它在终端给出以下错误:

没有找到github "ReactiveCocoa/reactivesswift "的标记版本

如何解决这个问题?

github链接错误

github "ReactiveCocoa/reactivesswift " "master"

以下链接帮助解决了问题

https://github.com/Carthage/Carthage/releases/tag/0.15.1

try this:

github "ReactiveCocoa/ReactiveCocoa" "5.0.0-alpha.1"

Swift 3正式发布

试试这个…

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'targetName' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
    pod 'ReactiveCocoa', :git => 'https://github.com/ReactiveCocoa/ReactiveCocoa.git', :tag => '5.0.0'
    pod 'Result', :git => 'https://github.com/antitypical/Result.git', :tag => '3.1.0'
  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

最新更新