适用于Swift 3.0的Reactive Cocoa

问题描述 投票:1回答:4

我正在将一个项目从Swift 2.x更新到3.0。我通过Carthage安装了ReactiveCocoa版本v4.2.2。要更新反应性可可,我已将我的购物车文件更新为

github "ReactiveCocoa/ReactiveCocoa" "master"

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

找不到github“ReactiveCocoa / ReactiveSwift”的标签版本

我该如何解决?

ios swift3 reactive-cocoa carthage
4个回答
0
投票

github链接错误。

github“ReactiveCocoa / ReactiveSwift”“master”


0
投票

0
投票

试试这个:

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

这是Swift 3的官方发布。


0
投票

试试这个...

# 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
© www.soinside.com 2019 - 2024. All rights reserved.