Skip to content

feature: ios sourcemap upload script fails debug builds and manual runs - #395

Draft
KishanPRao wants to merge 1 commit into
mainfrom
feature/ios-sourcemap-upload-dbg
Draft

feature: ios sourcemap upload script fails debug builds and manual runs#395
KishanPRao wants to merge 1 commit into
mainfrom
feature/ios-sourcemap-upload-dbg

Conversation

@KishanPRao

Copy link
Copy Markdown
Collaborator

Summary

ios-sourcemap-upload.sh exited 1 whenever the source map or debug id file was missing.
Every Debug build is missing them by design. All Debug and simulator builds failed with xcodebuild error 65, and the script could not run outside Xcode.

Changes

  • packages/react-native/scripts/ios-sourcemap-upload.sh: skips Debug configurations and SKIP_BUNDLING builds inside Xcode, reports a missing source map, debug id, config, backtrace-js or node as an Xcode warning: instead of failing the build, keeps them as errors outside Xcode, sources ios/.xcode.env like React Native's own phase, drops the REACT_NATIVE_PATH dependency, documents environment and behavior in the usage header.
  • packages/react-native/tests/scripts/iosSourcemapUploadScript.spec.ts: new, drives the script through Xcode Debug/Release/custom configurations, SKIP_BUNDLING, missing inputs, .xcode.env node resolution, DEBUG_ID_PATH, upload failure, and manual runs.

ref: BT-7405

@KishanPRao
KishanPRao requested a review from melekr September 8, 2026 13:05
@KishanPRao KishanPRao self-assigned this Sep 8, 2026
@KishanPRao KishanPRao added the enhancement New feature or request label Sep 8, 2026

@melekr melekr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants