Reputation: 17329
I try to include RealmSwift into a Cocoa Touch Framework: I dragged RealmSwift.framework into my Xcode project and added it to "Linked Framwork and Libraries".
I also added $(PROJECT_DIR)/MyProject/RealmSwift.framework/Frameworks
to the Framework Search Paths
but I still get the error:
Missing required modules: Realm.Private, Realm
What am I missing here?
Upvotes: 0
Views: 412
Reputation: 18308
Per Realm's documentation on using Realm Swift's prebuilt dynamic frameworks, you need to ensure that both Realm.framework
and RealmSwift.framework
are added to your Xcode project, can be found on the framework search path, and are configured to be linked by the targets that use Realm Swift. It's not necessary for RealmSwift.framework/Frameworks
to be on the framework search path, only the directory containing RealmSwift.framework
.
Upvotes: 1