Search code examples
iosapp-storerealm

'Realm/Realm.h' file not found in iOS when Archiving


When Archiving the project for Enterprise Distribution I'm getting an error "'Realm/Realm.h' file not found" .

Screenshot:

Actual Error Text

Realm works fine both on simulator and devices when I run it. But the problem is when Archive the project.


Solution

  • thanks for your answers. my problem is solved. But I'm very sorry that, I can't remember now how I was able to fix it. Most probably I had to do a "pod update" and i didn't override any settings from pods.xcodeproj to my main app .xcodeproj, I used "$(inherited)" as cocoapods suggested in command line. Cheers.