I am working on a project in Xcode written in Swift. I use two containers, AFNetworkingand BDBOAuth1Manager. These are both Obj-C libraries, so a simple bridge file to import them takes care of everything.
Now the problem occurs when I try to enable the third module SwiftyJSON, which is written in Swift. Here's what the Podfile looks like:
platform :ios, "8.0"
use_frameworks!
pod "AFNetworking"
pod "BDBOAuth1Manager"
pod "SwiftyJSON"
link_with 'TwitterSearch', 'TwitterSearch Tests'
After installing the above Podfile, the header header stops working, because now it cannot find the files I'm trying to import.
In short, this is the header of the header file:
//
// Use this file to import your target public headers that you would like to expose to Swift.
//
It works when the Pods - it is just AFNetworkingand BDBOAuth1Managerthat are recorded in Obj-C. It does not work if the third module SwiftyJSONwritten in Swift is enabled .
Exact error messages:
- Swift: "BDBOAuth1RequestOperationManager.h"
- Swift:
-
, ?
: , . SwiftyJSON, . : use_frameworks!
, , :
#import "path/BDBOAuth1RequestOperationManager.h"
instead of
#import "BDBOAuth1RequestOperationManager.h"