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

iOS Deployment Fails: Unable to Open File ‘–token’ & Source Map Generation Issue #1350

Open
naveen4rawat opened this issue Feb 20, 2025 · 1 comment

Comments

@naveen4rawat
Copy link

I’m deploying my expo app to the staging environment, but the iOS deployment eas pipeline is failing due to the following issue:

Upon further investigation, I found that this function is unable to generate the source map:
sourcemaps.sh#L52
This happens because the package @react-native-community/cli cannot be resolved.

Additionally, at this location:
sourcemaps.sh#L46,
the variable $source_map_file is an empty string.

Suggested Fixes:

  1. Modify sourcemaps.sh to check if the source map file exists before proceeding, and throw an explicit error if it does not.
  2. Ensure @react-native-community/cli is included as a peer dependency in the package configuration.
  3. Handle cases where $source_map_file is empty by adding validation and error handling in the script.
Copy link

stale bot commented Feb 28, 2025

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

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

No branches or pull requests

1 participant