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.

'realm/util/assert.hpp' file not found

See original GitHub issue

This seems like a common issue. Building in XCode fails with 'realm/util/assert.hpp' file not found. Other people seem to be able to workaround it by using realm@2.0.0. However, it fails for with 2.0.0, 2.0.1, and 2.0.2 for me. I’ve tried with XCode 9.0 and XCode 9.1. I’ve tried with multiple projects using react-native@0.48.4.

There was also a thread about the possibility of a different version of node being used (https://github.com/realm/realm-js/issues/1424). I’m consistently on node v6.11.3

Goals

Setup realm in my react-native project.

Expected Results

A successful iOS build.

Actual Results

'realm/util/assert.hpp' file not found

Steps to Reproduce

yarn add realm@2.0.0 react-native link realm

  • Build the app.

Version of Realm and Tooling

  • Realm JS SDK Version: 2.0.0, 2.0.1, 2.0.2
  • Node or React Native: react-native@0.48.4
  • XCode versions: XCode 9.0, XCode 9.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fealebenpaecommented, Nov 2, 2017

@newtonry could you attach the full Xcode build log?

0reactions
knethcommented, Dec 18, 2017

Version 2.1.0 should improve the situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

build failed: 'realm/util/assert.hpp' file not found #2617 - GitHub
Goals I want to build project successfully Expected Results build success Actual Results build failed: 'realm/util/assert.hpp' file not ...
Read more >
Lexical or Preprocessor issue: 'realm/keys.hpp' file not found
To resolve the issue, I had to: remove pod 'RealmSwift' from my podfile; run pod install; re-add pod 'RealmSwift' in my podfile ...
Read more >
Build fail on Linux with IpTNLP.hpp not found - Google Groups
Hi, I'm trying to build casadi on ubuntu 14.04.02 machine, i'm getting this error which i think comes from Ipopt. "casadi/interfaces/ ...
Read more >
Realm Crash Realm::Util::Terminate(Char Const ... - ADocLib
build failed: 'realm/util/assert.hpp' file not found #2617. Closed I have tried deleting the ios / build file and recompiling.
Read more >
MFEM: general/error.hpp Source File
29 Abort execution using abort() or MPI_Abort(). This is the default error. 30 action when the build option MFEM_USE_EXCEPTIONS is set to NO....
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