『在项目中添加 ReactiveCocoa』

2015-09-09 20:45:40 +08:00
 yh4801480

https://github.com/ReactiveCocoa/ReactiveCocoa 下载

github 上方法:

To add RAC to your application:

1.Add the ReactiveCocoa repository as a submodule of your application ’ s repository.
2.Run script/bootstrap from within the ReactiveCocoa folder.
3.Drag and drop ReactiveCocoa.xcodeproj, Carthage/Checkouts/Box/Box.xcodeproj and Carthage/Checkouts/Result/Result.xcodeproj into your application ’ s Xcode project or workspace.
4.On the “ General ” tab of your application target ’ s settings, add ReactiveCocoa.framework, Box.framework and Result.framework to the “ Embedded Binaries ” section.
5.If your application target does not contain Swift code at all, you should also set the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to “ Yes ”.

关于第 1 步首先你得有个 git ,给自己的工程创建一个 git
$ git init   
$ git submodule add https://github.com/ReactiveCocoa/ReactiveCocoa.git external/ReactiveCocoa
$ git add .gitmodules external/ReactiveCocoa
$ git commit -m "Add ReactiveCocoa as a submodule"

后续补充使用 cocoaPods 添加

关于 ReactiveCocoa 入门两个教程:
1. http://benbeng.leanote.com/post/ReactiveCocoaTutorial-part1
2. http://benbeng.leanote.com/post/ReactiveCocoaTutorial-part2

这样好用的 ReactiveCocoa ,根本停不下来:
http://www.cocoachina.com/ios/20150817/13071.html

2679 次点击
所在节点    iOS
1 条回复
lay2737
2015-09-09 21:22:10 +08:00
mark

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/219462

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX