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.

Archive iOS build after enable Hermes in Pods takes a lot of time

See original GitHub issue

Description

After turn on Hermes in pods, the archive build is stuck and never finished. :hermes_enabled => true

React Native version:

System: OS: macOS 11.2.3 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Memory: 34.60 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node Yarn: 1.21.1 - ~/.yarn/bin/yarn npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 Build Tools: 23.0.1, 24.0.1, 28.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.3 System Images: android-21 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom IDEs: Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0

Steps To Reproduce

  1. in Podfile enable hermes :hermes_enabled => true
  2. Xcode > Product > Archive

Expected Results

Archive build is done and I can upload it to the Testflight.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:25

github_iconTop GitHub Comments

4reactions
danielopradocommented, Apr 22, 2021

It’s taking to long to build, it about 4x times longer.

Hermes enabled: hermes enabled

Hermes Disabled: hermes disabled

2reactions
marcshillingcommented, Apr 15, 2022

I’m happy to report that upgrading from React Native 0.64.2 -> 0.67.4 has resolved the issue for me! Still not sure which version in particular is responsible for the fix, or even what was causing the slowness in the first place, but: RN 0.64.2 Hermes DISABLED: ~15-20 min builds RN 0.64.2 Hermes ENABLED (Hermes 0.7.2): ~60-70 min builds (bulk of the time spent on the “Bundle React Native code and images” step) RN 0.67.4 Hermes ENABLED (Hermes 0.9.0): 20 minutes in my first test

Read more comments on GitHub >

github_iconTop Results From Across the Web

RCT-Folly error when using hermes with iOS - Stack Overflow
After lots of trial and error I found a working solution. It's a bit strange, but I had to enable Flipper. I did...
Read more >
Using Hermes - React Native
Enabling Hermes on Older Versions of React Native​​​ This section explains how to enable Hermes on older versions of React Native. First, ensure ......
Read more >
Using Hermes in React Native - LogRocket Blog
Add Hermes, an open-source JavaScript engine, to your React Native application to optimize performance by reducing app launch time.
Read more >
Lorenzo Signoretti on Twitter: "Trying out Hermes on iOS for the first ...
Bringing Hermes to iOS in React Native 0.64 | blog {callstack} ... Archive iOS build after enable Hermes in Pods takes a lot...
Read more >
What to Expect From the Hermes Engine in React Native 0.70
On Android, edit your android/app/build.gradle file: ... iOS requires you to install Hermes pods after configuring settings.
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