Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.76][Regression] Resolved $NODE_BINARY with spaces fails Xcode build #47211

Closed
huntie opened this issue Oct 25, 2024 · 3 comments
Closed

[0.76][Regression] Resolved $NODE_BINARY with spaces fails Xcode build #47211

huntie opened this issue Oct 25, 2024 · 3 comments
Labels
0.76 Bug Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Resolution: Duplicate

Comments

@huntie
Copy link
Member

huntie commented Oct 25, 2024

Description

Building a new 0.76 project on iOS from Xcode is no longer completing, for particular system Node paths.

This is due to something we've changed in our Xcode script handling (apologies that I had to stop short of fixing this during today!).

  • On my system, under fnm, the result of with-environment.sh is ~/Library/Application\ Support/fnm/node-versions/v20.12.0/installation/bin/node — a path which contains a space character.
  • When executed as part of the Xcode build phase [Hermes] Replace Hermes for the right configuration, if needed, the build fails due to this space breaking the executed command.
image
0.75 0.76
image image
✅ Builds from Xcode ❌ Fails

Potentially related to #32984.

Steps to reproduce

Init new project and build with Xcode.

npx @react-native-community/cli@latest init RN076 --version 0.76.0
cd RN076/
xed ios

React Native Version

0.76.0

Affected Platforms

Build - MacOS

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 15.0.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 144.95 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.0
    path: ~/Library/Caches/fnm_multishells/36757_1729887672338/bin/node
  Yarn:
    version: 1.22.22
    path: ~/homebrew/bin/yarn
  npm:
    version: 10.5.0
    path: ~/Library/Caches/fnm_multishells/36757_1729887672338/bin/npm
  Watchman:
    version: 2024-10-21T04:02:12Z
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/huntie/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.15989.150.2411.11948838
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.8
    path: /Users/huntie/.jenv/shims/javac
  Ruby:
    version: 2.7.4
    path: /Users/huntie/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0-alpha.2
    wanted: 15.0.0-alpha.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: 0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

Reproducer

Screenshots and Videos

No response

@react-native-bot react-native-bot added Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Oct 25, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:

@cortinico
Copy link
Contributor

@cortinico cortinico closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.76 Bug Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Resolution: Duplicate
Projects
None yet
Development

No branches or pull requests

3 participants