Triggering eas build from CI exits without error

Hi!
I’m trying to set up my CI flow with the new eas build. I uploaded to all necessary credentials to the Expo servers. I tried eas build --profile staging --platform all --skip-credentials-check --non-interactive on my local machine, and it works perfectly, but when I run the exact same command in a CI flow, the process just stops after ✔ Using remote iOS credentials (Expo server). No error message, the command exits if there aren’t any other things to do. I’m using the same EXPO_TOKEN both locally and in the CI. I suppose the problem is with the ios part, because if I run eas build --profile staging --platform android --non-interactive it works as expected. I’m not sure what the problem is, at first I thought it wants some input like logging in to Apple account, but I provided the --skip-credentials-check flag and the issue is still the same. Please help, I’m totally confused how I could make this work. My eas.json file:

{
  "builds": {
    "android": {
      "staging": {
        "workflow": "managed",
        "distribution": "internal",
        "releaseChannel": "staging",
        "buildType": "apk"
      },
      "production": {
        "workflow": "managed",
        "distribution": "store",
        "releaseChannel": "production",
        "buildType": "apk"
      }
    },
    "ios": {
      "staging": {
        "workflow": "managed",
        "distribution": "internal",
        "releaseChannel": "staging"
      },
      "production": {
        "workflow": "managed",
        "distribution": "store",
        "releaseChannel": "production"
      }
    }
  }
}

is this happening only for “distribution”: internal ? or also for store builds?

The same happens for store builds as well.

hi there! can you please try with eas-cli@0.14.0?

I think I’m encountering the same issue, but I’m seeing it locally. Running eas build --platform ios exits without erroring after completing all of the steps in the wizard. Here’s my console output:

➜  crystal-dating-app git:(main) eas build --profile preview --platform ios           
✔ Linked to project @ajenkins01/crystal-dating-app
✔ 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@example.com
› Restoring session /Users/ajenkins/.app-store/auth/redacted@example.com/cookie
› Team Andrew Jenkins (XXXXXXXXXX)
› Provider AJ Jenkins (XXXXXXX)
✔ Logged in Local session
✔ Bundle identifier registered app.crystaldating.ios
✔ Synced capabilities
➜  crystal-dating-app git:(main) eas build:list                                       
✔ Linked to project @ajenkins01/crystal-dating-app
✖ Couldn't find any builds for the project @ajenkins01/crystal-dating-app

I’m using eas-cli@0.14.0. I don’t know if it’s relevant, but I just signed up for EAS Preview about an hour ago.

UPDATE: It’s working now after upgrading to 0.14.1.

I’m not sure if it’s the same issue, for me it exits before Apple Developer account login step. The same happens with eas-cli@0.14.0.

Hello,

Same problem here in IOS Build. Tested with eas 0.13 and eas 0.14

eas build --platform ios
√ Linked to project @helyxteam/toodays-staging
√ 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: ... toto@toto.io
› Restoring session [...]
› Team Helyx ([...])
› Provider Helyx ([...])
√ Logged in Local session
√ Bundle identifier registered [...]
√ Synced capabilities
√ Fetched Apple distribution certificates

And stop and say nothing

It should be fixed in latest eas-cli version (0.14.1) that was just released

2 Likes

It works now :tada:

2 Likes