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.

Include of non-modular header inside framework module 'React.HermesExecutorFactory'

See original GitHub issue

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

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

Build fails in Xcode:

Include of non-modular header inside framework module 'React.HermesExecutorFactory'

React Native version:

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

info Fetching system and libraries information...
(node:13053) 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: 760.74 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. Build app 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

2reactions
JB-CHAUVINcommented, Aug 2, 2021

@tapz found a workaround patch-package and add pod 'React-Core/Hermes', :path => "#{prefix}/", :modular_headers => true to the script

What did you patch ?

2reactions
PhungVanHoacommented, May 22, 2021

Same problem if i enable Hermes and use use_frameworks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Include of non-modular header inside framework module
I think perhaps the best answer would involve making it a modular header, rather than basically silencing this error. I can easily imagine...
Read more >
Include of non-modular header insi… | Apple Developer Forums
I'm trying to use the OpenTok 3rd party framework in a Swift project using Cocoapods using frameworks. Ever since Xcode 7.1 beta 2,...
Read more >
iOS/Xcode: Include of non-modular header inside framework ...
I have a native Swift iOS app (A). This app has an Augmented Reality aspect of the app which I keep separated into...
Read more >
Peter Steinberger on Twitter: "“Include of non-modular header ...
“Include of non-modular header inside framework module” is my nemesis of the week. I wish Clang would be a bit more open in...
Read more >
Include of non-modular header inside ... - Google Groups
0 when I can't build because precomplier error "Include of non-modular header inside framework module 'GoogleMobileAds'". I'm using Objective-C inside Xcode 6.3 ...
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