标签:des style http io ar color os sp for
这是对官方教程的补充
To add RAC to your application:
$ git submodule add https://github.com/ReactiveCocoa/ReactiveCocoa.git external/ReactiveCocoa
$ git add .gitmodules external/ReactiveCocoa
$ git commit -m "Add ReactiveCocoa as a submodule"
script/bootstrap
from within the ReactiveCocoa folder.ReactiveCocoaFramework/ReactiveCocoa.xcodeproj
into your application‘s Xcode project or workspace.libReactiveCocoa-iOS.a
.(我没找到这个东西,于是添加了ReactiveCocoa.framework)ReactiveCocoa.framework
. RAC must also be added to any "Copy Frameworks" build phase. If you don‘t already have one, simply add a "Copy Files" build phase and target the "Frameworks" destination."$(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts/include" $(inherited)
to the "Header Search Paths" build setting (this is only necessary for archive builds, but it has no negative effect otherwise).-ObjC
to the "Other Linker Flags" build setting.If you would prefer to use CocoaPods, there are some ReactiveCocoa podspecs that have been generously contributed by third parties.(本来以为自己有CocoaPods会很方便, 弄了半天没搞定,只好按上边的步骤)
To see a project already set up with RAC, check out C-41 or GroceryList, which are real iOS apps written using ReactiveCocoa.
标签:des style http io ar color os sp for
原文地址:http://www.cnblogs.com/howmacist/p/4126821.html