【发布时间】:2015-10-09 08:29:52
【问题描述】:
我意识到ReactiveCocoa 的 cocoapod 完全在 SWIFT 中,我需要桥接头文件,但我的尝试远未成功。
我确实找到了来自 TeamTreehouse 员工之一的 this 回复:
"The SimpleAuth library has it's own set of dependencies one of which is ReactiveCocoa. ReactiveCocoa was recently rewritten completely in Swift so that's the Swift code that's getting added to your project. Unfortunately there are 2 versions of ReactiveCocoa out there, written in Swift 1.2 and Swift 2.0.
SimpleAuth is currently automatically pulling the 1.2 version of ReactiveCocoa.
Swift 1.2 can only be run in Xcode 6.1 and not in Xcode 7 (which requires Swift 2).
So if you are using Xcode 7, then you're pulling in the Swift 1.2 version by default and this is causing all the Swift errors.
Also, you have to do some cleanup work to get Swift frameworks to run in a mixed Objective-C/Swift project which includes adding a bridging header and stuff."
.
^^ 解释我的问题 ^^
提前致谢!
编辑
将 use_frameworks! 添加到我的 Podfile 后,我收到如下错误:
【问题讨论】:
标签: ios objective-c xcode reactive-cocoa