You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use local credential only on iOS (due to multi target app) and still want to use remote credentials for Android build.
iOS builds just fine with local credentials, however, Android fails.
In the Android build it seems to use the credentials properly:
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Default (default)
Yet it still seems to try to read android properties of the credentials.json even though it should use remote. In credentials.json I only define ios since Android should be remote.
Then in the build I got the error : Cannot read properties of undefined (reading 'keystore')
If I specify and empty Android props in the credentials.json like "android": {}, then it fails on the next embedded prop of it: Cannot read properties of undefined (reading 'keystorePath').
It only builds if I delete the credentials.json file, but then iOS will fail.
I can't really replicate it when I have an app with credentials.json set up for iOS only and your stage build profile 🤔
➜ managed git:(master) ✗ eas build -p all -e stage
We detected that you are building for the "store" distribution. Resolving the environment for environment variables used during the build to "production". Set the "environment" field in the build profile if you want to specify the environment manually.
No environment variables with visibility "Plain text" and "Sensitive" found for the "production" environment on EAS servers.
🤖 Android build
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: test2 (default)
Compressing project files and uploading to EAS Build. Learn more
✔ Uploaded to EAS 1s
✔ Computed project fingerprint
We detected that you are building for the "store" distribution. Resolving the environment for environment variables used during the build to "production". Set the "environment" field in the build profile if you want to specify the environment manually.
No environment variables with visibility "Plain text" and "Sensitive" found for the "production" environment on EAS servers.
🍏 iOS build
✔ Using local iOS credentials (credentials.json)
Compressing project files and uploading to EAS Build. Learn more
✔ Uploaded to EAS 1s
✔ Computed project fingerprint
I only have ios credentials in credentials.json.
It seems to correctly use local credentials for iOS and remote credentials for Android.
What CLI version do you use? Can you create a repo with such a setup for which it fails for you (with mock credentials)? Maybe I configured something wrong 🤔
Build/Submit details page URL
No response
Summary
I need to use local credential only on iOS (due to multi target app) and still want to use remote credentials for Android build.
iOS builds just fine with local credentials, however, Android fails.
In the Android build it seems to use the credentials properly:
Yet it still seems to try to read
android
properties of thecredentials.json
even though it should use remote. Incredentials.json
I only defineios
since Android should be remote.Then in the build I got the error :
Cannot read properties of undefined (reading 'keystore')
If I specify and empty Android props in the
credentials.json
like"android": {}
, then it fails on the next embedded prop of it:Cannot read properties of undefined (reading 'keystorePath')
.It only builds if I delete the
credentials.json
file, but then iOS will fail.Managed or bare?
bare
Environment
Error output
Cannot read properties of undefined (reading 'keystore')
Reproducible demo or steps to reproduce from a blank project
build command that fails:
eas.json:
credentials.json:
The text was updated successfully, but these errors were encountered: