您的位置:首页 > Web前端 > React

关于CocoaPods使用ReactiveCocoa遇到的问题

2017-01-10 11:08 239 查看
最近有兴趣研究一下ReactiveCocoa,集成的时候就遇到了问题,分享一下:xcode8.x建的oc项目然后使用cocoapods集成ReactiveCocoa

1、podfile的文件内容(使用pod init)就可以创建一个podfile的文件

在文件中添加一下内容,就可以下载最新的啦

pod  'ReactiveCocoa'
use_frameworks!


2、集成之后出现了一下的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



再编译就没有问题了( ̄▽ ̄)~*
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息