So, I wanted to link to RealmSwift in my own structure, and these are the steps I took:
Add RealmSwift as a subproject
RealmSwift
Tie the frames:
Add a dependency
Import RealmSwift into a Swift file:
And I got the error: Missing required modules: 'Realm.Private', 'Realm' . How can I solve this problem? Thanks!
Missing required modules: 'Realm.Private', 'Realm'
You need to add /path/to/RealmSwift.framework/Frameworks in the "Wireframe Search Paths" section of the build settings
/path/to/RealmSwift.framework/Frameworks
where /path/to/RealmSwift.framework is the location of the frame.
/path/to/RealmSwift.framework
This is because RealmSwift.framework depends on Realm.framework (where the Realm and Realm.Private modules are Realm.Private ), which is sold in its Frameworks directory.
RealmSwift.framework
Realm.framework
Realm
Realm.Private
Frameworks
As of v0.93.0 , RealmSwift.framework no longer builds Realm.framework. This results in the same missing module error message when updating. You can resolve this by linking directly to RealmSwift.framework and Realm.framework. You also need to remove any pre-existing strip-frameworks.sh. Run Script Phase in the target build phase of the application. This step is no longer needed.
Something similar happened to me when I installed pod install ...
Make sure you open the appname.xcworkspace file and not the appname.xcodeproj after doing pod-install using CocoaPods.
Error There is no such module "RealmSwift" from any file where "import RealmSwift" is configured if it is not open from appname.xcworkspace.
Source: https://habr.com/ru/post/1263910/More articles:Is Asp.Net Core redirected to an action, but doesn’t allow you to directly invoke an action? - c #"The table name pattern cannot be NULL or empty" in java - javaSwift Project: “Missing Required Modules” when importing a modular structure - iosWhat is the volume of I? - delphiHow to protect private channels when using socket.io and Laravel Echo? - websocketanimateLayoutChanges = "true" in a BottomSheetView showing unexpected behavior - androidrespond to natural conditional visualization - conditionalPowerShell Azure cmdlet not recognized - powershellIs it possible to dynamically create components in React Native? - dynamicSQL - if Select returns nothing, then make another choice. - sqlAll Articles