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