最近有興趣研究一下ReactiveCocoa匾二,集成的時候就遇到了問題界弧,分享一下:xcode8.x建的oc項目然后使用cocoapods集成ReactiveCocoa
1爷辱、podfile的文件內容(使用pod init)就可以創(chuàng)建一個podfile的文件
在文件中添加一下內容,就可以下載最新的啦
pod 'ReactiveCocoa'
use_frameworks!
2、集成之后出現(xiàn)了一下的error:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
解決過程:
選著pods -> ReactiveCocoa -> build settings -> Swift Compiler -> Version - > Use Legacy Swift Language Version 更改為Yes
再編譯就沒有問題了( ̄▽ ̄)~*