user1542125
user1542125

Reputation: 615

Obj C project swift file cannot see cocoa pods

I have an Objective C project that I added a swift file to - the swift file will contain convenience functions to the rest of my objc project. Adding the swift file triggered adding a bridging header - which I did. All of this works. I also have cocoapods configured and working from objc.

I can call a swift method from objc but my swift file cannot see any of my swift cocoapod modules. I get error 'no such module'. I've searched here extensively and have cleaned my project, cleaned the build folder checked my search paths- all appears ok. I am using use_frameworks! In my pod file.

Any pointers?

Upvotes: 1

Views: 658

Answers (1)

Ralfonso
Ralfonso

Reputation: 1624

You need to add your pod header to your bridging header as described here: Import Objective-C Framework (CocoaPod) into Swift?

Upvotes: 1

Related Questions