简体   繁体   中英

Reactive Cocoa for Swift 3.0

I am updating a project from Swift 2.x to 3.0. I have ReactiveCocoa version v4.2.2 installed via Carthage. To update reactive cocoa I have updated my cart file as

github "ReactiveCocoa/ReactiveCocoa" "master"

When I run command Carthage update , it gives the following error in terminal:

No tagged versions found for github "ReactiveCocoa/ReactiveSwift"

How do I fix this?

the github link is wrong.

github "ReactiveCocoa/ReactiveSwift" "master"

Following link helped sove the issue

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

try this:

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

it's an official release for Swift 3.

Try this...

# 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM