Realm-js: xCode Build Fails

Created on 2 Dec 2017  路  7Comments  路  Source: realm/realm-js

Goals

Trying to build app with Realm using xCode, but keep getting error.

If anyone can help me debug this error it would be greatly appreciated. I have already tried multiple things including:

  • Deleting the derived data;
  • Cleaning the project;
  • Setting script to run only when installing;

The build works when using react-native run-ios command, but still need to getting it working in xCode.

Result

image

Steps to Reproduce

  1. Build the project
react-native init realmtest
cd realmtest
npm install
npm install realm --save
react-native link realm
npm start
  1. Setup provisioning profile in xCode
  2. Run project in xCode

Version of Realm and Tooling

  • Realm JS SDK Version: 2.0.11
  • Node: 8.9.1
  • React Native: 0.50.3
  • xCode: 9.1
O-Community T-Bug

Most helpful comment

For whatever reason, the problem at some point after my computer was restarted. But this week a colleague had the same problem and ended up finding the solution. It seems to be caused by a missing link. Try running ln -s $(which node) /usr/local/bin/node

All 7 comments

Please see #1483.

I am having the same exact issue in trying to incorporate Realm JS into our React Native app. What is the current status of this issue?

please helppppppp

For whatever reason, the problem at some point after my computer was restarted. But this week a colleague had the same problem and ended up finding the solution. It seems to be caused by a missing link. Try running ln -s $(which node) /usr/local/bin/node

@katima-g33k Just out of curiosity: did you upgrade to High Sierra as part of the reboot?

No the reboot was due to a power outage. The computer has been on high siearra even before i started using it. So the os version has nothing to do with the issue (in my case anyway)

If anyone arrive here with the same issue, I solved it thanks to @katima-g33k last comment

Conditions to consider this solution, I'm using nvm and before to apply this solution there was no /usr/local/bin/node so if you're using nvm first load the node version you're using for your project and the run ln -s $(which node) /usr/local/bin/node

Was this page helpful?
0 / 5 - 0 ratings