星空网 > 软件开发 > 操作系统

[iOS]ReactiveCocoa playground配置

1.ReactiveCocoa使用Carthage做包管理,所以需要先安装Carthage环境,从https://github.com/Carthage/Carthage/releases上下载最新的Carthage安装包,然后一路continue就OK了

2.从github上clone ReactiveCocoa源码, clone完毕后在ReactiveCocoa-master目录下运行carthage update命令,carthage就根据carthage文件内容(类似于cocoapod的Podfile)编译出framework,

  framework在 /Carthage/Build/iOS目录下

3.用xcode打开ReactiveCocoa.xcworkspace

4.编译Result-Mac scheme和ReactiveCocoa-Mac scheme

5.打开ReactiveCocoa.playground

6.ReactiveCocoa.playground会加载相关头文件并运行playground的代码

[iOS]ReactiveCocoa playground配置images/loading.gif' data-original="http://images2015.cnblogs.com/blog/342766/201607/342766-20160716201547451-174093378.png" width="1122" height="634" />

 

 

原文步骤:

Clone the ReactiveCocoa repository.
Retrieve the project dependencies using one of the following terminal commands from the ReactiveCocoa project root directory:
script/bootstrap OR, if you have Carthage installed
carthage checkout
Open ReactiveCocoa.xcworkspace
Build Result-Mac scheme
Build ReactiveCocoa-Mac scheme
Finally open the ReactiveCocoa.playground
Choose View > Show Debug Area

 

参考资料:

https://github.com/Carthage/Carthage

https://github.com/Carthage/Carthage/releases

https://github.com/ReactiveCocoa/ReactiveCocoa#introduction

http://www.cnblogs.com/wdsunny/p/4479590.html




原标题:[iOS]ReactiveCocoa playground配置

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流