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.

Can't add node args when we bundle code and images to iOS app

See original GitHub issue

Environment

React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel® Core™ i7-7660U CPU @ 2.50GHz Memory: 802.13 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.11.0 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 22, 23, 24, 25, 26, 27, 28 Build Tools: 23.0.1, 23.0.2, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 27.0.2, 27.0.3, 28.0.0, 28.0.3 System Images: android-24 | Google Play Intel x86 Atom, android-27 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.1 AI-173.4819257 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.6.1 => 16.6.1 react-native: 0.57.5 => 0.57.5 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

Description

I can’t build an iOS app with node args, like --max_old_space_size. By modification of ce25c54, we can’t add node args to NODE_BINARY.

When I build app, I get an error with below message.

error: Can't find 'node --max_old_space_size=8192' binary to build React Native bundle

Reproducible Demo

Open Bundle React Native code and images of Build Phases by XCode. Modify like below.

export NODE_BINARY=node\ --max_old_space_size=8192
../node_modules/react-native/scripts/react-native-xcode.sh

Then start building the app.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Kuchitamacommented, Jan 27, 2019

@jrounsav Yes. Unfortunately, my patch(#22423) is not included in 0.57.8, 0.58.0 and maybe 0.58.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode Build react native code and images not finding node
I am trying to build react native ios release ...
Read more >
bundle id is missing when creating… | Apple Developer Forums
I have two bundle ids, but they seems to be missing and I cant select ... ID in the Certificates, Identifiers & Profiles...
Read more >
Config Plugins - Expo Documentation
Expo config plugins mostly come from Node modules, you can install them just ... Once you add a few plugins, your app.config.js code...
Read more >
Manage functions | Cloud Functions for Firebase - Google
You can deploy, delete, and modify functions using Firebase CLI commands or by setting runtime options in your functions source code.
Read more >
pkg - npm
This command line interface enables you to package your Node.js ... No need to install Node.js and npm to run the packaged application...
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