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.

'memory' file not found

See original GitHub issue

Please provide all the information requested. Issues that do not follow this format are likely to stall.

After upgrading to 0.64 Xcode build once again does not work. Here are all “Not found” and “Could not build” errors:

'exception' file not found
'memory' file not found
'functional' file not found
Could not build module 'React'

#include <memory>
#import <React/RCTEventDispatcher.h>
#import <React/RCTEventEmitter.h>
etc.

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html

React Native version:

Run react-native info in your terminal and copy the results here.

info Fetching system and libraries information...
(node:23675) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
System:
    OS: macOS 11.2.3
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 68.66 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.10.1 - /usr/local/opt/node@14/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 7.5.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 30
      Build Tools: 29.0.3, 30.0.2
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7199119
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 14.0.2 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.64.0 => 0.64.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Start build in Xcode

Expected Results

Describe what you expected to happen.

Successful build

Snack, code example, screenshot, or link to a repository:

Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

4reactions
tapzcommented, Apr 6, 2021

Looks to me that hermes_enabled => true and use_frameworks! cannot be used at the same time.

0reactions
ankit-glcommented, Oct 20, 2022
Showing Recent Errors Only
/Users/<usrname>/codebase/mobile/<app-name>/node_modules/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.h:10:10: Include of non-modular header inside framework module 'React.HermesExecutorFactory': '/Users/<usrname>/codebase/mobile/<app-name>/ios/Pods/Headers/Public/hermes-engine/hermes/hermes.h'

Getting the above error when using use_frameworks! :linkage => :static and :hermes_enabled => true

Is there any work around

Read more comments on GitHub >

github_iconTop Results From Across the Web

include <memory> file not found · Issue #11328
Using emscripten v1.39.16 on Ubuntu 18.04 trying to compile a c++ file with emcc results in the following error: fatal error: 'memory' file...
Read more >
XCode Objc header cannot find standard memory library
#include <memory> in an Objective-C headerfile causes the error 'memory' file not found . The header file is imported for an external static ......
Read more >
Clang compilation issues with libc++
-- Found shared_ptr in std::tr1 namespace using <tr1/memory> header. I have installed libc++1 using sudo apt-get install libc++-dev libc++1. in ...
Read more >
Mac XCode Memory File Not Found - MacOSX and iOS
I'm trying to build my audio synth plugin in Mac OSX Mojave in XCode and I am getting file not found for #include...
Read more >
Objective Sharpie: #include <memory> not found - MSDN
framework file/folder with the library and the header files. In Objective Sharpie I add the option "-F /path/to/the/library" as suggested in a ...
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