The bridge header does not import the Cocoapod libraries, "There is no such module" MagicalRecord ""

I am trying to import MagicalRecord into a project to a clean slate (so far). I created Cocoapods, MagicalRecord installed and I am using .xcworkspace

instead .xcodeproj

.

I am using the bridge header that Xcode automatically generates when I create my Objective C class (although I also tried to use the manually generated bridge header) and I made sure to set the bridge header .xcodeproj

in under Build Settings> Quick Compiler - Code Generation> Objective-C Top the header is configured correctly.

In the header header, I have

#import <MagicalRecord/MagicalRecord.h>

      

and then when i try to use import MagicalRecord

in swift file i get an error No such module 'MagicalRecord'

. I tried different instructions #import

in the title header, for example imported CoreData+MagicalRecord.h

as the old tutorials suggested and it still doesn't work.

It doesn't seem like my bridge header is completely broken, as when I try to import a file created in my own project it works and I can create objects defined in the imported file. However, if I try to import MagicalRecord into this file, I still get the above import error.

Is there some additional setup I need to do to get this to work?

+3


source to share


1 answer


Make sure your connector is in place and use_framework!

exists in Podfile

.



0


source







All Articles