Skip to content

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

@naveen4rawat

Description

@naveen4rawat

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions