realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.72k stars 564 forks source link

unknown type name 'Ivar' #577

Closed andresbravog closed 8 years ago

andresbravog commented 8 years ago

The environment

I'm running a react-native project in:

I'm building the project using fastlane and gym with no other options than the schema

The Problem

After upgrade my project to:

I'm getting this error when building iOS, rolling back to react-native 0.30.0 fixes the issue.

 Building RealmReact/RealmReact [Release]
▸ Check Dependencies
▸ Compiling RealmAnalytics.mm
▸ Compiling RealmReact.mm

❌  /Users/andresbravo/Documents/Projects/profinda/SRC/ProFindaLite/node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:50:5: unknown type name 'Ivar'

    Ivar contextIvar = class_getInstanceVariable([executor class], "_context");
     ^

❌  /Users/andresbravo/Documents/Projects/profinda/SRC/ProFindaLite/node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:50:24: use of undeclared identifier 'class_getInstanceVariable'

    Ivar contextIvar = class_getInstanceVariable([executor class], "_context");
    ^

Any ideas??

andresbravog commented 8 years ago

nevermind, it was fixed after: