-
Notifications
You must be signed in to change notification settings - Fork 84
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
Failing to provision selected iOS device even though it appears to work on apple.com #2107
Comments
I am also seeing this -- I can see my device is marked as enabled in Apple but I am getting the same error as above: We added other devices last night and they are fine. |
I've even tried removing my device from the profile, and |
It's been reported on Reddit too: https://www.reddit.com/r/expo/comments/17kr7rr/failed_to_provision/ |
i am having this issue. Just added two new devices and got this "failed to provision". |
same issue, in the Apple developer portal the device did not show any under review status and it's been added for over a week so I don't think the cli warning applies:
|
its says it can't be installed because its integrity could not be verified. |
same problem with iPad Air |
What fixed it for us was deleting the provisioning profile (eas credentials > iOS > staging > Build Credentials > Provisioning Profile > Delete) and creating a new build, generating a new profile with the new devices added in. |
tried that, didnt help - result is the same (Failed to provision 1 of the selected devices) |
@estatheo Interesting. I downloaded the one that was on expo.dev and it definitely doesn't have my device on it even though the same profile on apple.com does. Do you (or anyone) know if that's the profile that's used when the If so, I'm guessing if I updated that profile by uploading the one from apple.com it would work for me. I kinda don't want to do that though until someone from the Expo team reviews this issue because it feels like a bug on their end (so I don't want to "force fix" it). |
yeah same issue here - was working great a week or so ago and now it's failing consistently. Fixed temporarily by wiping the devices and provisioning profiles in the apple developer page, but happening again now |
is this project dead? we've been stuck for a week. |
This solution from the top comment on the related Reddit post fixed it for me,
|
Eas CLI didn't seem to delete it out of the box. An alternative is to delete the provisioning profile directly via Apple developer portal. Just navigate to https://developer.apple.com/account/resources/profiles/list, delete the ad-hoc profile auto generated by Expo and kick off a new build with |
@rgommezz My understanding is EAS should update the provisioning profile, not delete it. If people want to work around this issue by deleting the provisioning profile (which forces EAS to make a new one) that's fine, but I'm still reproducing the original issue. I'll leave my setup alone for now until someone from the EAS team has had a chance to review this issue and provide recommendations (I just want to make sure I can confirm it's fixed if they change something on their end to resolve). |
For us it did seem that EAS was appropriately updating the cert (when we download it from apple it has all the devices listed), but the final cert being applied by EAS doesn't get updated (extracting the profile from the final IPA shows the new devices are missing, despite the unix timestamp in the cert name matching). I'm not sure if this is a caching issue or EAS just isn't downloading the new cert after updating it on apple's side. I'd dig into it myself but I honestly don't know my head from my feet when it comes to expo internals 😅 maybe over the weekend if the expo crew haven't taken a look yet. |
This was the solution for me. |
I'm experiencing the same issue and this worked for me. I hope they fix this so we don't have to work around it again. |
@focux Does this require us to readd each device via the URL or will the devices still be available to choose? |
The devices are still available. You'll go through the normal "press space to select" flow and they should all be there as long as the devices themselves were added to apple/eas |
@MidnightTinge Thanks! I will give this a shot. |
Update, that worked. The registered devices were still listed and all were automatically selected. |
Looks like fix was merged in |
|
for me this worked: eas device:create |
Build/Submit details page URL
No response
Summary
Steps:
eas build --profile development --platform ios --local
and log onto my Apple account.*[expo] com.my.app AdHoc 1234567
", but errors out with "Failed to provision 1 of the selected devices:".I can confirm after refreshing on apple.com that eas did actually succeed in adding my device to the provisioning profile, so I don't understand what's wrong. The error suggests that my device may be processing here https://developer.apple.com/account/resources/devices/list, but it's not - it's active and has been there for years. I can also confirm that if I download the provisioning profile, it lists my device on it. Is eas somehow downloading an old provisioning profile?
I've repeated this process a bunch of times but get the same result. Also tried restarting my computer, logging out of eas and back in. Nothing works.
Managed or bare?
bare
Environment
Error output
Reproducible demo or steps to reproduce from a blank project
Already mentioned in Summary.
The text was updated successfully, but these errors were encountered: