-
Notifications
You must be signed in to change notification settings - Fork 84
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
Bug build iOS with SDK49 with multiple scheme #2009
Comments
After further investigation, it seems that this forum thread talked about the same issue. Apparently there seems to be a 🐞 in some point of the Update: on further debugging in my app i have A way to reproduce this is to completely remove the |
@lukasver - EAS Build does not use .env.test, .env.development, or .env.production - it will load your env from the notice when you run
and when you run
|
I am also seeing this issue, here is a link to my latest build. |
This issue keeps happening. and here is a short example of my
by running the following command to build: My guess some sub shell running with |
I am also experiencing this issue. Through a bunch of testing various build configurations, I've been able to confirm that at some point in the build process, the environment variable defined in This causes dynamic properties in For us, this arises in the "Fastlane" build step for iOS. We dynamically set the bundle identifier in ios: {
bundleIdentifier: `com.ourorg.ourapp.${ENVIRONMENT}`
} We set up the build config in eas.json, to include: "build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"env": {
"ENVIRONMENT": "in-development-profile",
}
"staging": {
"channel": "staging",
"distribution": "internal",
"env": {
"ENVIRONMENT": "in-staging-profile"
}
}, And have a
And then run The outcome is the "Spin up build environment" build step will show the correct value:
And the "Read app config" step shows the correct dynamic value:
But the "Run Fastlane" step fails with this error:
I had to redact a lot of proprietary information from the example, but hopefully it still make sense! A couple of other details that might be relevant:
This would seem to indicate a couple of things:
Here is another forum post where I believe someone is encountering the same issue. Since we run our builds from a Github action, the workaround we came up with is to simply delete the I happy to share specific builds that repro this with someone from the development team if that helps to debug this, I'm just unable to link to them publicly. |
Thanks @mattpetrie, your description totally makes sense and I can confirm I've similar config in my repo resulting in same problem. |
It seems like the issue is coming from a small detail in the documentation. When .env or other environment files are added to gitignore they will also be ignored by EAS. Problem is that is very contradictory because if you build locally then you are relying on .env files which shouldn't be added to the git repository. Solution: remove .env file (and others) from gitignore and the build pipeline loads the env files. Also: The documentation suggests to only use NODE_ENV=test, development or production. Edit: if you add a .easignore file to the directory it doesn't look for .gitignore anymore so you can gitignore .env files. |
@mattpetrie I have the exact same problem as you, with pretty much an identical setup. Have you found a solution yet? I have a possible workaround from another project that I've worked on where I use the This definitely seems like a bug in Expo/EAS. |
Build/Submit details page URL
https://expo.dev/accounts/smatsa/projects/wealth-managers-lite-app/builds/e902404a-195b-4d26-af51-160e49f49b97
Summary
After updating to SDK49, adopting
expo-router
, new way of handling envs by Expo & following this guide for apps with different APP_VARIANTS its proven to be impossible to build theproduction
provisioning profile for iOS.From what i can make out from the error logs below, apparently the bundleIdentifier from the stage variant gets in the way when trying to create the build from production profile. I guess it comes from the export_method
Gymfile
but not sure how this can be addressed. I've tried adding a customGymfile
in the/ios
folder but same error is reproduced.Managed or bare?
bare
Environment
Error output
Reproducible demo or steps to reproduce from a blank project
eas build --profile preview --platform ios --local
eas build --profile production --platform ios --local
Same error is thrown when building in eas servers
The text was updated successfully, but these errors were encountered: