ReactiveCocoa的导入

来源:互联网 发布:网络打印机主机有密码 编辑:程序博客网 时间:2024/06/10 02:35

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



0 0