[iOS]ReactiveCocoa playground配置

本文档详细介绍了如何使用Carthage管理ReactiveCocoa的依赖,并提供了具体步骤来帮助开发者快速设置开发环境,包括安装Carthage、编译项目及运行playground等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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的代码

 

 

原文步骤:

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

转载于:https://www.cnblogs.com/afluy/p/5677143.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值