Xcode can't see objects added via Cocoapods Xcode can't see objects added via Cocoapods ios ios

Xcode can't see objects added via Cocoapods


Once you use use_frameworks! in your Podfile, Objective-C Pods like SSKeychain also get build as frameworks.

The actual problem is that only module imports work in the bridging header when using frameworks. Also, you might want to get rid of the bridging header entirely, as it is unnecessary when using frameworks, they can be imported directly in Swift.


To clarify what you should do to make it work:

  1. Be sure to have use_frameworks! in your Podfile
  2. It doesn't matter if you have a Bridging header or not. Leave it untouched
  3. In your SWIFT file just use import Podname

That's it, you're good to go. Of course it may happen that you need to clean your project or maybe delete the derived data folder. Build and you can use it.


If you're not using any swift pods,

Try removing the use_frameworks! on your Podfile.

Run pod install on terminal.

Clean & Build !

I spent almost half an hour fixing it, I tried adding those paths on Search Paths or re-adding the bridging-header but the error was the same.

Therefore, in my case, bridging header file was not the problem, its on the Podfile .

I hope it helps!