Closed trevordunn closed 1 year ago
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: Failed to provision 1 of the selected devices
We added other devices last night and they are fine.
I've even tried removing my device from the profile, and eas
successfully adds it back in cause I can see it added back in on apple.com, but it thinks it failed and says "Failed to provision 1 of the selected devices:".
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:
Most commonly devices fail to to be provisioned while they are still being processed by Apple, which can take up to 24-72 hours. Check your Apple Developer Portal page at https://developer.apple.com/account/resources/devices/list, the devices in "Processing" status cannot be provisioned yet
its says it can't be installed because its integrity could not be verified.
same problem with iPad Air it happened like 2 weeks ago
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.
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 --local
option is used?
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,
For anyone still having any trouble with this, I found that in order to get the provisioning profile to update with the new devices, I had to delete it and start a new build. This then generates a new profile with the new devices.
I had to run eas credentials > iOS > preview > Build Credentials > Provisioning Profile > Delete
Then run your build as normal.
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 eas build
. That will create a new profile that will include all devices you've selected.
@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).
@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.
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.
This was the solution for me.
This solution from the top comment on the related Reddit post fixed it for me,
For anyone still having any trouble with this, I found that in order to get the provisioning profile to update with the new devices, I had to delete it and start a new build. This then generates a new profile with the new devices. I had to run eas credentials > iOS > preview > Build Credentials > Provisioning Profile > Delete Then run your build as normal.
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?
@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.
@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 v5.8.0
v5.8.0
fixed it for me! Thanks!
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.