天天看点

ReactiveCocoa的导入

1.打开xcode创建一个工程,

2.终端到工程路径下

cd 工程路径根目录/

3.配置依赖文件

vi Podfile

    platform :ios,'5.0'

   pod 'ReactiveCocoa'

:wq保存退出

4.下载文件

 pod install /update

5.打开xcworkspace文件

6:打开“Build Phases”选中相应的target, 添加 RAC 到 “Link Binary With Libraries”.加上libReactiveCocoa-iOS.a

7:在Header Search Paths中添加$(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts/include

8:在 “Other Linker Flags”添加 -ObjC