【问题标题】:Reactive Cocoa for Swift 3.0用于 Swift 3.0 的反应式 Cocoa
【发布时间】:2017-01-27 01:59:02
【问题描述】:

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

github "ReactiveCocoa/ReactiveCocoa" "master"

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

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

我该如何解决这个问题?

【问题讨论】:

    标签: ios swift3 reactive-cocoa carthage


    【解决方案1】:

    github链接错误。

    github "ReactiveCocoa/ReactiveSwift" "master"

    【讨论】:

    • 试过上面的链接,同样的错误( github "ReactiveCocoa/ReactiveSwift" "master") *** Fetching ReactiveSwift No tagged versions found for github "ReactiveCocoa/ReactiveSwift"
    【解决方案2】:

    【讨论】:

      【解决方案3】:

      试试这个:

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

      这是 Swift 3 的正式版本。

      【讨论】:

        【解决方案4】:

        试试这个...

        # 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
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2017-06-09
          • 1970-01-01
          • 2014-08-05
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多