diff --git a/README.md b/README.md index 13c2f724..ee805f6a 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ The ReactNative example project is in the `examples/ReactExample` directory. You ## ReactNative Project Setup - Create a new ReactNative project `react-native init ` and open the generated XCode project. - Drag `RealmJS.xcodeproj` into the `Libraries` folder in your project. -- Drag `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. This bundles the library with your app. -- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` in the `Target Dependencies` and `Link Binary with Library` build phases. +- Drag `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. Make sure the checkbox under `Code Sign On Copy` is **not checked** because having it checked will cause issues when trying to run your app on a device. +- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` to the `Link Binary with Library` build phases. - In your app's `package.json` file, add the `realm` dependency with a path to the `realm-js/lib` folder like this: `"realm": "file:path/to/realm-js/lib"` (symlinks are not yet supported by the React Native packager, see [issue #637](https://github.com/facebook/react-native/issues/637)). - You can now `require('realm')` in your app's JS to use Realm!