- I made an EAS secret for my Google Plist file, GOOGLE_SERVICES_PLIST_DEV. The type of the secret is a file, not a string. I ran “eas secret:create --scope project --name GOOGLE_SERVICES_PLIST_DEV --type file --value ./src/config/development/GoogleService-Info_DEV.plist”, which exactly follows the pattern in the documentation
- Inside my app.config.js, I defined: “googleServicesFile: process.env.GOOGLE_SERVICES_PLIST_DEV”
- When I build my project locally, it fails. I suspect this is because the secret is a file; if I instead type out the path as a string, the local build succeeds and the app works as expected:
“googleServicesFile: “./src/config/development/GoogleService-Info_DEV.plist”” - If I use the string approach, when I try to build with eas build, that hardcoded path causes the build to fail, since I have the file in my .gitignore.
How should I be accessing the secret in my app.config.js file? Anything else I’m missing here about how to create a secret for a file and have it used for my local “npx expo run:ios” and eas builds?
About my project:
- Managed workflow
eas-cli
version 4.1.2- So far I’ve read the EAS Secrets documentation, but can’t sort it out, a bit over my head