Using Static Libraries with Cocoapods 1.5 No Such Module at Import

Using static libraries with CocoaPods 1.5 no such module at import

CocoaPods 1.5.0 introduced use_modular_headers! to still provide module support with static libraries. Details in the release notes.

Alternatively you could change the modular imports in your sources to file imports.

I'd also recommend trying out the CocoaPods 1.6.0 beta since it has several fixes for static/dynamic library and framework issues.

2020 Update

CocoaPods 1.9.0 introduced use_frameworks! :linkage => :static which will generate full frameworks with statically linked libraries and module map files. This is typically an even better approach than use_modular_headers!.

Using static libraries in Swift with CocoaPods fails for Realm

I did the job doing following:

pod 'RealmSwift', '~> 3.17', :modular_headers => true
pod 'Realm', '~> 3.17', :modular_headers => true

No such module 'SDWebImage' using pod

This happened to me many times try these steps:

-> Try cleaning your project

OR

-> Restart your Xcode

OR

-> If you doing a new project setup than try again new project again

  1. delete your workspace
  2. again create your new workspace with pods installing from fresh
  3. try to rebuild

3rd option could work as this happens many times when search paths are not getting in build settings of your project



Related Topics



Leave a reply



Submit