-
Notifications
You must be signed in to change notification settings - Fork 85
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
EAS Build: Can't use dynamic app name #2273
Comments
Hey, I suspect that you get this error because when resolving credentials for your project you don't have What I think you can do is add
|
@szdziedzic Thanks for the response. I'm on the same page with you.
|
The reason is that the EAS CLI is the place where the resolution of all credentials and other settings for a build. It happens based on the Additionally, it is allowed to have multiple different sets of credentials per one project, so credentials to the project aren't 1:1 mapping.
It's interesting that it even works for you because provisioning profiles are per (Apple) project 🤔 https://docs.expo.dev/app-signing/app-credentials/#provisioning-profiles However, what I can recommend to you is using the GitHub build trigger for EAS builds. During GH-triggered builds the credentials are resolved on the server side, so you should get correct results using your current setup and it doesn't matter what you have specified for EAS CLI (because it is not used to trigger the build) |
Does it make sense to you? |
@szdziedzic Probably unrelated, but how can I manage secrets/environment variables for different profiles(dev, staging and production) remotely? I have configured |
It would be nice to have support for a dynamic |
Build/Submit details page URL
https://expo.dev/accounts/dynamic-name-test/projects/dynamic-name-test/builds/541c5d26-4ed3-4e20-b2a2-735442d26e30
Summary
I want to use dynamic app name for my Expo project. By "dynamic" I mean the name that comes from EAS Secrets. So I've created a Secret called
APP_NAME
and here is myapp.config.js
file:I successfully submit a build and here is the output of "Read app config" step from Expo dashboard (so it looks like name comes from EAS Secrets):
However, I get this error on "Run fastlane" step:
I don't have
APP_NAME
variable being added to my environment locally. And it looks like this "name-from-package-json" comes frompackage.json
file. Mypackage.json
file:I expect that such behaviour is either documented or it should use final version of
app.config.js
file (that includes all env variables from EAS Secrets) rather than my local version of this file (at the moment of calleas build
).Managed or bare?
Managed
Environment
npx expo-env-info:
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.0
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0 - /opt/homebrew/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.3 - /opt/homebrew/bin/npm
Watchman: 2023.09.25.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.13.0 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
Android SDK:
API Levels: 28, 29, 30, 31, 32, 33
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 31.0.0, 33.0.0
System Images: android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs ARM 64 v8a, android-31 | Google APIs Intel x86 Atom_64, android-32 | Google Play ARM 64 v8a, android-S | Google APIs ARM 64 v8a 2, android-S | Google Play ARM 64 v8a, android-Sv2 | Google APIs ARM 64 v8a
IDEs:
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ~50.0.11 => 50.0.11
react: 18.2.0 => 18.2.0
react-native: 0.73.4 => 0.73.4
npmGlobalPackages:
eas-cli: 7.3.0
expo-cli: 5.4.6
Expo Workflow: managed
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK
Didn't find any issues with the project!
Error output
No response
Reproducible demo or steps to reproduce from a blank project
npx create-expo-app my-app
.app.config.js
file, link local project to the project you've just created in Expo dashboard.process.env.SOME_VARIABLE
.eas build
.The text was updated successfully, but these errors were encountered: