expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
852 stars 86 forks source link

EAS build failed to setup credentials: Combined Error [GraphQL] Unexpected server error (Expo error ID: undefined) #1613

Open dochonglo opened 1 year ago

dochonglo commented 1 year ago

Build/Submit details page URL

No response

Summary

I started a new project using expo init and installed some expo dependencies as well as a dependency that has native modules as I've been following this YouTube tutorial. However, when I run eas build --profile development --platform all, I get the following error:

Failed to setup credentials.
    CombinedError: [GraphQL] Unexpected server error (Expo error ID: 
    undefined).
    [GraphQL] Unexpected server error (Expo error ID: undefined).

I'm unsure why this is happening and how to fix it. Unfortunately, the undefined error isn't very helpful and doesn't provide much context.

Note: Interestingly, I was just using was build on a bar workflow project earlier today and everything seemed to work just fine.

Managed or bare?

Managed

Environment

  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 13.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
      Watchman: 2023.01.02.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.3 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6953283
      Xcode: 14.2/14C18 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~47.0.12 => 47.0.12 
      react: 18.1.0 => 18.1.0 
      react-dom: ^18.2.0 => 18.2.0 
      react-native: 0.70.5 => 0.70.5 
      react-native-web: ^0.18.10 => 0.18.10 
    Expo Workflow: managed

Error output

๐ŸŽ iOS build
ios.infoPlist: withIntrospectionBaseMods โžœ withIosBaseMods โžœ withGeneratedBaseMods โžœ withIosInfoPlistBaseMod
ยป ios: mods.ios.infoPlist: Failed to find Info.plist linked to Xcode project.
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withVersion โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withBuildNumber โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withUsesNonExemptEncryption โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withUserInterfaceStyle โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withScheme โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withRequiresFullScreen โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withOrientation โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withDisplayName โžœ withInfoPlist
ios.infoPlist: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withGoogle โžœ withInfoPlist
ios.infoPlist: withStaticPlugin โžœ withRunOnce โžœ withLocation โžœ withInfoPlist
ios.infoPlist: withStaticPlugin โžœ withRunOnce โžœ withImagePicker โžœ withInfoPlist
ios.infoPlist: withStaticPlugin โžœ withRunOnce โžœ withDevClient โžœ withGeneratedIosScheme โžœ withInfoPlist
ios.infoPlist: withStaticPlugin โžœ withRunOnce โžœ withCamera โžœ withInfoPlist
ios.infoPlist: withFacebook โžœ withStaticPlugin โžœ withRunOnce โžœ withFacebook โžœ withInfoPlist
ios.infoPlist: withBranch โžœ withStaticPlugin โžœ withRunOnce โžœ withBranch โžœ withInfoPlist
ios.infoPlist: withAdMob โžœ withStaticPlugin โžœ withRunOnce โžœ withAdMob โžœ withInfoPlist
ios.infoPlist: withStaticPlugin โžœ withRunOnce โžœ withMaps โžœ withGoogleMapsKey โžœ withInfoPlist
ios.infoPlist: withPlugins โžœ withStaticPlugin โžœ withOneSignal โžœ withOneSignalIos โžœ withRemoteNotificationsPermissions โžœ withInfoPlist
ios.infoPlist: withRnFirebaseAuth โžœ withPlugins โžœ withStaticPlugin โžœ withIosCaptchaUrlTypes โžœ withInfoPlist
ios.entitlements: withIntrospectionBaseMods โžœ withIosBaseMods โžœ withGeneratedBaseMods โžœ withIosEntitlementsBaseMod
ios.entitlements: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withAssociatedDomains โžœ withEntitlementsPlist
ios.entitlements: withExpoIOSPlugins โžœ withPlugins โžœ withStaticPlugin โžœ withAccessesContactNotes โžœ withEntitlementsPlist
ios.entitlements: withDocumentPicker โžœ withStaticPlugin โžœ withRunOnce โžœ withICloudEntitlement โžœ withEntitlementsPlist
ios.entitlements: withNotifications โžœ withStaticPlugin โžœ withRunOnce โžœ withNotifications โžœ withNotificationsIOS โžœ withEntitlementsPlist
ios.entitlements: withAppleAuthentication โžœ withStaticPlugin โžœ withRunOnce โžœ withAppleSignInEntitlement โžœ withEntitlementsPlist
ios.entitlements: withPlugins โžœ withStaticPlugin โžœ withOneSignal โžœ withOneSignalIos โžœ withAppGroupPermissions โžœ withEntitlementsPlist
ios.entitlements: withPlugins โžœ withStaticPlugin โžœ withOneSignal โžœ withOneSignalIos โžœ withAppEnvironment โžœ withEntitlementsPlist
ios.expoPlist: withIntrospectionBaseMods โžœ withIosBaseMods โžœ withGeneratedBaseMods โžœ withIosExpoPlistBaseMod
ios.expoPlist: withUpdates โžœ withStaticPlugin โžœ withRunOnce โžœ withUpdates โžœ withUpdates โžœ withExpoPlist
โœ” Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the values manually and we can only run minimal validation on them.
โœ” Do you want to log in to your Apple account? โ€ฆ yes

โ€บ Log in to your Apple Developer account to continue
โœ” Apple ID: โ€ฆ [REDACTED]
โ€บ Restoring session /Users/[REDACTED]/.app-store/auth/[REDACTED]/cookie
โ€บ Team [REDACTED]
โ€บ Provider [REDACTED]
โœ” Logged in Local session
โœ” Bundle identifier registered com.testing.app
Current remote capabilities:
[
  {
    "context": {
      "providerId": [REDACTED],
      "teamId": "[REDACTED]"
    },
    "id": "[REDACTED]_IN_APP_PURCHASE",
    "attributes": {
      "ownerType": "BUNDLE",
      "settings": null,
      "editable": true,
      "inputs": null,
      "enabled": true,
      "responseId": [REDACTED]
    }
  },
  {
    "context": {
      "providerId": [REDACTED],
      "teamId": "[REDACTED]"
    },
    "id": "[REDACTED]_PUSH_NOTIFICATIONS",
    "attributes": {
      "ownerType": "BUNDLE",
      "settings": null,
      "editable": true,
      "inputs": null,
      "enabled": true,
      "responseId": "[REDACTED]"
    }
  },
  {
    "context": {
      "providerId": [REDACTED],
      "teamId": "[REDACTED]"
    },
    "id": "[REDACTED]",
    "attributes": {
      "ownerType": "BUNDLE",
      "settings": null,
      "editable": true,
      "inputs": null,
      "enabled": true,
      "responseId": "[REDACTED]"
    }
  }
]

Current local entitlements:
{
  "aps-environment": "development",
  "com.apple.security.application-groups": [
    "group.com.testing.app.onesignal"
  ]
}
Skipping existing capability: aps-environment (Push Notifications)
Remaining to remove:  [ '[REDACTED]_IN_APP_PURCHASE', '[REDACTED]_APP_GROUPS' ]
Skipping existing capability: com.apple.security.application-groups (App Groups)
Remaining to remove:  [ '[REDACTED]_IN_APP_PURCHASE' ]
Existing to disable:  [ '[REDACTED]_IN_APP_PURCHASE' ]
โœ” Synced capabilities: No updates
Linking ID to appGroups: group.com.testing.app.onesignal ([REDACTED])
Updating bundle identifier with capability identifiers: [
  {
    capabilityType: 'APP_GROUPS',
    option: 'ON',
    relationships: { appGroups: [Array] }
  }
]
โœ” Synced capability identifiers: Linked: group.com.testing.app.onesignal
Failed to setup credentials.
    CombinedError: [GraphQL] Unexpected server error (Expo error ID: 
    undefined).
    [GraphQL] Unexpected server error (Expo error ID: undefined).

Reproducible demo or steps to reproduce from a blank project

expo init testing-app
yarn add react-native-blur-hash
yarn add was-cli
yarn add expo-dev-client
eas build --profile development --platform all
brycnguyen commented 1 year ago

Facing this same issue in our project as well and nothing has changed. Started happening today.

dochonglo commented 1 year ago

I thought it was just a server issue on the Expo/EAS end. However, I tried running the eas build --profile development --platform all command days later and unfortunately, I'm still having the same issue.

It's unfortunate that I have to do this in order to use the expo-dev-client and therefore, actually start coding my app. Anyone know what is causing this?

kylerjensen commented 1 year ago

Experiencing this issue as well with eas-cli@3.3.0. Did not occur with previous version.

brycnguyen commented 1 year ago

Per the known issue it seems like they are aware: https://github.com/expo/eas-cli/releases/tag/v3.3.0

I changed to https://github.com/expo/eas-cli/releases/tag/v3.2.1 and it works again