Vote count:
0
I just started working on a project in Xcode using Swift, and I soon figured out that using CocoaPods can help a lot in managing external frameworks.
I just installed CocoaPods as described on their website, and I added two pods: ObjectMapper and SwiftyJSON. In one of my .swift files I am importing the ObjectMapper (import ObjectMapper).
When I build the project, it gives me the following error:
could not build Objective-C module 'ObjectMapper'
I already tried reinstalling CocoaPods and creating a Bridging Header, but unfortunately neither of them worked. Maybe I am doing something wrong, but since I am totally new to this, I can't seem to figure out what the problem is.
What am I doing wrong? Any help is greatly appreciated.
asked 34 secs ago
Swift: Could not build Objective-C module when using CocoaPods
Aucun commentaire:
Enregistrer un commentaire