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
- delete your
workspace
- again create your new workspace with
pods
installing from fresh - 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
Swift:How to Convert String to String with Time Format
How to Create a Pfquerytableviewcontroller with Parse in Swift
Use More Than One Firebase Database in Single App - Swift
Get the Value of Variable Out of Closure Swift
Apple Push Notifications in Tvos
How to Make a Uiimage Scrollable Inside a Uiscrollview
Swift, Parse.Com: How to Pass Data from Query
Locationmanager Didupdatelocations Fires Twice on Device, Only Once on Simulator
Swift Core Data Sync with Web Server
iOS Swift3 Check Nil Value for Viewcontroller Object
Value of Type 'Error' Has No Member 'Code'
App Crash on Device But Works on Simulator iOS
How to Rotate a Scnsphere Using a Pan Gesture Recognizer