Skip to content

building on own infrastructure is using the wrong port for loading the js bundle #471

@f-ricci

Description

@f-ricci

What am I trying to accomplish?

A bare workflow build with a physical device as target in order to develop the IAP integration.


The command I'm using is:

eas build --platform ios --profile dev --local

my eas.json looks like this

{
  "builds": {
    "android": {
      "release": {
        "workflow": "managed"
      }
    },
    "ios": {
      "dev": {
        "distribution": "internal",
        "workflow": "generic",
        "credentialsSource": "local",
        "schemeBuildConfiguration": "Debug",
        "env": {
          "ENVIRONMENT": "dev",
          "RCT_METRO_PORT": "19000"
        }
      },
    }
  }
}

Even though I specify the RCT_METRO_PORT to be the same as the port expo start uses.

I also tried to build using the remote eas build service but with luck as the app crashes on the launch screen.

Quick Solution

The solution for now is to develop using RCT_METRO_PORT=8081 react-native start.

Real solution

Provide the same configuration to the eas build as the one used for the expo start in order to maintain consistency.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions