-
Create
.env
file with theEXPO_PUBLIC_API_ROOT
variable- Example:
EXPO_PUBLIC_API_ROOT="https://google.com"
- Example:
-
yarn install
-
Put an EAS project ID in
app.config.ts
-
eas build --platform ios --profile development --local
- The profile and the platform don't matter, just an example. The
local
flag is what's important.
- The profile and the platform don't matter, just an example. The
-
See failure
- We'll try to access the
EXPO_PUBLIC_API_ROOT
var inapp.config.ts
. If it exists, the building will continue, while if the variable doesn't exist an error will be thrown.