[iOS]ReactiveCocoa playground配置,reactivecocoa配置
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