我正在将一个项目从Swift 2.x更新到3.0。我通过Carthage安装了ReactiveCocoa
版本v4.2.2。要更新反应性可可,我已将我的购物车文件更新为
github "ReactiveCocoa/ReactiveCocoa" "master"
当我运行命令Carthage update
时,它在终端中给出以下错误:
找不到github“ReactiveCocoa / ReactiveSwift”的标签版本
我该如何解决?
github链接错误。
github“ReactiveCocoa / ReactiveSwift”“master”
试试这个:
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