swalkner
swalkner

Reputation: 17329

adding RealmSwift to Cocoa Touch Framework: missing required modules

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

Answers (1)

bdash
bdash

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

Related Questions