Embed RealmSwift in the App
Open the App’s Xcode Project
Open the Xcode project for your ReferenceApp.
Navigate to Frameworks Section
In the project navigator, select the ReferenceApp target, then go to the "General" tab and scroll to "Frameworks, Libraries, and Embedded Content."
Add RealmSwift.framework
Click the "+" button, select RealmSwift.framework from the list it should appear since you’re using the RealmSwift pod, and add it.
Set to Embed & Sign
Ensure RealmSwift.framework is set to "Embed & Sign" in the dropdown next to it not "Do Not Embed".
Clean and Rebuild
Go to "Product" > "Clean Build Folder," then build and run the app again.
The error happens because RealmSwift isn’t fully embedded, so symbols like Results count are missing at runtime. The solution embeds RealmSwift in the app, making it provide the symbols your framework needs.