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 device:create - Missing iosUrlScheme in provided options: {} #2619

Open
deelo55 opened this issue Oct 14, 2024 · 3 comments
Open

eas device:create - Missing iosUrlScheme in provided options: {} #2619

deelo55 opened this issue Oct 14, 2024 · 3 comments

Comments

@deelo55
Copy link

deelo55 commented Oct 14, 2024

Build/Submit details page URL

https://expo.dev/accounts/heliosx/projects/levity

Summary

When running eas device:create I get the following error:

google-sign-in without Firebase config plugin: Missing `iosUrlScheme` in provided options: {}
    Error: device:create command failed.

I am configuring the iosUrlScheme using eas.json and .env files:

        '@react-native-google-signin/google-signin',
        {
          iosUrlScheme: process.env.REVERSED_GOOGLE_CLIENT_ID,
        },

.env

#GOOGLE SIGN IN
REVERSED_GOOGLE_CLIENT_ID = com.googleusercontent.apps.EXAMPLE

eas.json

    "preview": {
      "distribution": "internal",
      "env": {
        "REVERSED_GOOGLE_CLIENT_ID": "com.googleusercontent.apps.EXAMPLE

Managed or bare?

Bare

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 15.0
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.8.3 - ~/.nvm/versions/node/v20.17.0/bin/npm
Managers:
CocoaPods: 1.15.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode: 16.0/16A242d - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.37 => 51.0.37
expo-router: ~3.5.23 => 3.5.23
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
react-native-web: ^0.19.12 => 0.19.12
npmGlobalPackages:
eas-cli: 12.4.1
Expo Workflow: bare

Error output

google-sign-in without Firebase config plugin: Missing `iosUrlScheme` in provided options: {}
    Error: device:create command failed.

Reproducible demo or steps to reproduce from a blank project

Setup google authentication as described here:
https://docs.expo.dev/guides/google-authentication/
and make your app.config.js to load like:

        '@react-native-google-signin/google-signin',
        {
          iosUrlScheme: process.env.REVERSED_GOOGLE_CLIENT_ID,
        },

Run eas device:create

@deelo55 deelo55 added the needs review Issue is ready to be reviewed by a maintainer label Oct 14, 2024
@szdziedzic
Copy link
Member

As of today, EAS CLI does not support .env files at all. Only Expo CLI does (npx expo ...). The eas device:create command also doesn't work with build profiles 🤔 So probably to make it work you would need to do REVERSED_GOOGLE_CLIENT_ID=value eas device:create. We should probably let people use env vars in some way with it though 🤔.

@szdziedzic szdziedzic added eas build issue accepted and removed needs review Issue is ready to be reviewed by a maintainer labels Oct 15, 2024
@expo-bot
Copy link
Contributor

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@deelo55
Copy link
Author

deelo55 commented Oct 15, 2024

As of today, EAS CLI does not support .env files at all. Only Expo CLI does (npx expo ...). The eas device:create command also doesn't work with build profiles 🤔 So probably to make it work you would need to do REVERSED_GOOGLE_CLIENT_ID=value eas device:create. We should probably let people use env vars in some way with it though 🤔.

I don't have an issue with other EAS CLI commands as they reference the profile and use EAS.json. The device:create command doesn't look in eas.json or .env.

Alternatively, does create:device really need to do any validation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants