Reactive Cocoa / Reactive Swift - Swift 3.0 缺少方法

Reactive Cocoa / Reactive Swift - Swift 3.0 missing methods

自从我为 Swift 3.0 更新了 Reactive Cocoa (RAC 5) 需要 Reactive Swift 才能工作,我没有在 UITextField 上找到像 textField.rac_textSignal 这样的事件方法例如,或 cell.rac_prepareForReuseSignal 表示 UICollectionViewCell

我导入了两个框架,我认为问题是他们更新了框架并更改了方法的名称。但是我没有找到 Swift 3.0.

的更新文档

我在我的项目中将 Reactive Cocoa / Reactive Swift 作为 submodule 安装,而不是来自迦太基,也许问题出在这里?

(像那样:https://github.com/ReactiveCocoa/ReactiveCocoa#getting-started

谁能告诉我如何解决这个问题?

被动 Swift : https://github.com/ReactiveCocoa/ReactiveSwift

只有 : rac_lifetime.

谢谢。

Obj-C 的某些部分 API 已在另一个框架中划分:ReactiveObjC。

我需要安装此框架才能访问这些方法。

解决方案:

As stated in README (Objective-C and Swift section), those Objective-C API are splitted out to ReactiveObjC framework. You need to add https://github.com/ReactiveCocoa/ReactiveObjC as a submodule, link the framework, then import ReactiveObjC.

请参阅以下关于该问题的讨论:

https://github.com/ReactiveCocoa/ReactiveCocoa/issues/3197

请注意,ReactiveCocoa 5.0 刚刚发布了它的第一个 alpha 版本,其中包括不依赖于 ReactiveObjC 的 AppKit、Foundation 和 UIKit 扩展。

https://github.com/ReactiveCocoa/ReactiveCocoa/releases/tag/5.0.0-alpha.1