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

Provisioning profile "*[expo] XXX AdHoc XXX" doesn't include signing certificate "Apple Distribution: XXX" #1201

Closed
rcarter opened this issue Jul 8, 2022 · 13 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@rcarter
Copy link

rcarter commented Jul 8, 2022

Build/Submit details page URL

https://expo.dev/accounts/XXXXXXX/projects/XXXXXXXX/builds/253dc20a-ffb0-40f9-9707-cff2c0f6575d

Summary

All of a sudden, with no changes to my certs/profiles when I run: eas build --platform ios

I’m running into:
:x: error: Provisioning profile "*[expo] XXX AdHoc XXX" doesn't include signing certificate "Apple Distribution: XXX".

I’ve deleted all my provisioning profiles and certs and am letting eas handle creating new ones. But still the same error (both when running --local as well as running in the cloud). I recently upgraded to eas-cli/0.54.1 and I think it started happening after that upgrade. I can’t get any build past this.

Managed or bare?

Managed

Environment

    System:
      OS: macOS 12.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.14.2 - /opt/homebrew/bin/node
      Yarn: 1.22.10 - /opt/homebrew/bin/yarn
      npm: 8.5.0 - /opt/homebrew/bin/npm
      Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
      Android SDK:
        API Levels: 29, 30
        Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3
        System Images: android-30 | ARM 64 v8a, android-30 | Google APIs Intel x86 Atom_64, android-S | Google APIs ARM 64 v8a, android-S | Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2020.3 AI-203.7717.56.2031.7784292
      Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^44.0.0 => 44.0.6 
      react: 17.0.1 => 17.0.1 
      react-dom: 17.0.1 => 17.0.1 
      react-native: 0.64.3 => 0.64.3 
      react-native-web: 0.17.1 => 0.17.1 
    npmGlobalPackages:
      eas-cli: 0.54.1
      expo-cli: 5.4.9
    Expo Workflow: managed```
    
`🎉 Didn't find any issues with the project!`

### Error output

_No response_

### Reproducible demo or steps to reproduce from a blank project

not reproducible.
@rcarter rcarter added the needs review Issue is ready to be reviewed by a maintainer label Jul 8, 2022
@rcarter rcarter closed this as completed Jul 13, 2022
@izakfilmalter
Copy link

I am having the same issue, how did you fix it?

@rcarter
Copy link
Author

rcarter commented Aug 20, 2022

@izakfilmalter I can't exactly remember, but I deleted any certs in my Login Keychain, created new certs in AppStoreConnect, then downloaded and installed them back into my keychain. I took me a bit to get it right!

@izakfilmalter
Copy link

Thanks, that solved it for me. Was super confused with what is going on.

@umbertoghio
Copy link

I keep stumbling every once in a while in this issue, writing as reminder what specifically solved my issue:

In keychain access, under Login, my certificates, delete all "Apple Distribution: ......" Certificates, then no need to download / do anything else, it just works.

@km-tr
Copy link

km-tr commented Apr 14, 2023

Thanks, I deleted the Apple Distribution certificate from my keychain and that solved it.

@dongsuo
Copy link

dongsuo commented Aug 5, 2023

@umbertoghio Thank you bro, you save my day

@Acetyld
Copy link

Acetyld commented Aug 6, 2023

Thank you! @umbertoghio also saved my day =)

@fluid-design-io
Copy link

Thanks! This worked for me as well!
For people who are using local eas build, if your build failed an want to see the logs, in the terminal, export the env export EAS_LOCAL_BUILD_SKIP_CLEANUP=1and you'll see the console show a dir with the build logs, something like this:
Skipping cleanup, /var/folders/.../ won't be removed.

@Dinexpod
Copy link

Dinexpod commented Feb 28, 2024

I keep stumbling every once in a while in this issue, writing as reminder what specifically solved my issue:

In keychain access, under Login, my certificates, delete all "Apple Distribution: ......" Certificates, then no need to download / do anything else, it just works.

Thanks A LOT, you so helpful, this problem exhausts me)
Now everything work)

@arncet
Copy link

arncet commented Mar 26, 2024

I keep stumbling every once in a while in this issue, writing as reminder what specifically solved my issue:

In keychain access, under Login, my certificates, delete all "Apple Distribution: ......" Certificates, then no need to download / do anything else, it just works.

Works for me too :)
Thank you so much !!

@AnthonyGress
Copy link

Removing it solved it for me as well. Build error was an ARCHIVE ERROR exit code 65. Looking into the xcode build logs showed it was a mismatch with my distribution certificate.

@felipejh
Copy link

Removing solved for me, but it brings problems to build another app I have.

@NaokiOtsu
Copy link

As @felipejh said, deleting Apple Distribution: ...... solved the problem, but when I try to build another desktop app for the Mac App Store, I get an error because the Apple Distribution file is missing.

It would be nice if there was a way to prevent the iOS build from failing while leaving the Apple Distribution: ...... file, but I'm not sure how to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests