Skip to content

fix(ios): Load .xcode.env before the Expo debug files phase runs Node - #6861

Closed
alwx wants to merge 2 commits into
mainfrom
alwx/bugfix/6859
Closed

alwx wants to merge 2 commits into
mainfrom
alwx/bugfix/6859

Conversation

@alwx

@alwx alwx commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix

📜 Description

The Expo plugin "Upload Debug Symbols to Sentry" phase now loads ios/.xcode.env and ios/.xcode.env.local before it runs Node. It finds these files the same way as React Native with-environment.sh: in $PODFILE_DIR, or else in $PODS_ROOT/...

💡 Motivation and Context

The phase ran node to find sentry-xcode-debug-files.sh before NODE_BINARY was set. When Xcode starts from the Dock, node is not on PATH, so 7.x skipped the upload and 8.x failed the build. Fixes #6859.

💚 How did you test it?

New Jest tests run the generated phase script with PATH=/usr/bin:/bin:/usr/sbin:/sbin and NODE_BINARY set in .xcode.env.local. Without the fix, the tests fail with node: command not found, the same error as in the issue.

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • All tests passing.
  • No breaking changes.

🤖 Generated with Claude Code

alwx and others added 2 commits October 9, 2026 09:35
The "Upload Debug Symbols to Sentry" phase ran `node` to find its script
before it loaded `.xcode.env`. When Xcode starts from the Dock, `node` is
not on PATH, so the phase skipped the upload or failed the build.

Fixes #6859

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • fix(ios): Load .xcode.env before the Expo debug files phase runs Node by alwx in #6861

🤖 This preview updates automatically when you update the PR.

Comment thread CHANGELOG.md

### Fixes

- Load `ios/.xcode.env` and `ios/.xcode.env.local` in the Expo plugin "Upload Debug Symbols to Sentry" phase before it runs Node, so the phase finds Node when Xcode starts from the Dock ([#6861](https://github.com/getsentry/sentry-react-native/pull/6861))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 The changelog entry seems to be part of an already released section ## 8.30.0.
    Consider moving the entry to the ## Unreleased section, please.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 2fb01dd

@alwx alwx closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant