Search code examples
iosswiftrealm

realmswift Getting realm/util/features.h not found when compiling


I have an ios app written in swift, and i am using RealmSwift to save my data, before upgrading to the latest release the app was running fine, but after upgrading to realmswift 0.97 It started getting this issue every time i try to run the app

> Pods/Realm/include/realm/string_data.hpp:33:10:
> 'realm/util/features.h' file not found

Pods/Realm/Realm/ObjectStore/object_schema.cpp:19:10: In file included from Pods/Realm/Realm/ObjectStore/object_schema.cpp:19:

Pods/Realm/include/realm/object_schema.hpp:22:10: In file included from Pods/Realm/include/realm/object_schema.hpp:22:

Solution

  • In the realm issues log i found a related issue, the issue is related to cocoapod 1.0 beta.

    the solution is to use the stable release of cocoapod 0.39.

    for more details please read this issue log

    https://github.com/realm/realm-cocoa/issues/3052