Swift 搭配 Cocoapod
執行完pod install
之後
新增Bringing Header
設定, project_name/project_name-Bridging-Header.h
.
下圖的project_name為MyApp,所以名稱為MyApp/MyApp-Bridging-Header.h
// MyApp-Bridging-Header.h
#import <ReactiveCocoa/ReactiveCocoa.h>
Source :
Swift & Cocoapods
Source :
How to call Objective C code from Swift