美文网首页
关于CocoaPods使用ReactiveCocoa遇到的问题

关于CocoaPods使用ReactiveCocoa遇到的问题

作者: WMSmile | 来源:发表于2017-01-13 14:29 被阅读28次

最近有兴趣研究一下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


这里写图片描述

再编译就没有问题了( ̄▽ ̄)~*

相关文章

网友评论

      本文标题:关于CocoaPods使用ReactiveCocoa遇到的问题

      本文链接:https://www.haomeiwen.com/subject/izlsbttx.html