Skip to content
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 doesn’t detect the environment variables. #2804

Open
AndreiChe opened this issue Dec 15, 2024 · 2 comments
Open

EAS doesn’t detect the environment variables. #2804

AndreiChe opened this issue Dec 15, 2024 · 2 comments
Assignees

Comments

@AndreiChe
Copy link

Summary

eas-cli/14.2.0
expo: ~52.0.18

I’ve successfully uploaded variables to the EAS server using this:

eas env:create --scope project --name GOOGLE_SERVICES_JSON --type file --value ./google-services.json

eas env:create --scope project --name GOOGLE_SERVICES_INFO_PLIST --type file --value ./GoogleService-Info.plist

I see them on the website and can pull them via the CLI
Screenshot 2024-12-15 at 15 00 11

However, when I build the project, I see a warning.

eas build --platform ios --profile production
No environment variables with visibility "Plain text" and "Sensitive" found for the "production" environment on EAS servers.

Why am I receiving this warning?

What platform(s) does this occur on?

iOS

SDK Version

52.0.18

Environment

expo-env-info 1.2.1 environment info:
    System:
      OS: macOS 15.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
      Yarn: 1.22.21 - /opt/homebrew/bin/yarn
      npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
      Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    IDEs:
      Android Studio: 2024.1 AI-241.15989.150.2411.11948838
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      expo: ~52.0.18 => 52.0.18 
      expo-router: ~4.0.11 => 4.0.11 
      react: 18.3.1 => 18.3.1 
      react-dom: 18.3.1 => 18.3.1 
      react-native: 0.76.5 => 0.76.5 
      react-native-web: ~0.19.13 => 0.19.13 
    npmGlobalPackages:
      eas-cli: 14.2.0
    Expo Workflow: bare

Minimal reproducible example

Not applicable

@AndreiChe AndreiChe changed the title EAS doesn't see environment variables EAS doesn’t detect the environment variables. Dec 15, 2024
@lorddegenx
Copy link

hey did you ever find a solution?

I am having same issue with my google service files where the env isn't being registered with production build.

@AndreiChe
Copy link
Author

No. I had to commit env files to make it work.

@brentvatne brentvatne transferred this issue from expo/expo Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants