question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xCode Build Fails

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
katima-g33kcommented, Feb 9, 2018

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

2reactions
kaushiksahoo2000commented, Dec 10, 2017

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode: Build Failed, but no error messages - Stack Overflow
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. One possible cause is if there ...
Read more >
Build Failed — but no reason! | Apple Developer Forums
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Open your Loop project again in Xcode . In the main Xcode menu (grey menu bar at the very top of your Apple...
Read more >
xcode build fail in Xcode 14 · Issue #20701 · fastlane ... - GitHub
It complains that the target contains macOs which is not included in the distribution file, so by removing the macOs from the General...
Read more >
Apple M1 xcode build fails - C++ - Cocos Forums
Apple M1 xcode build fails ... I tried with cocos2d-x versions 3.16, 3.17 to create .xcframework bundle so that i can use arm64...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found