eas-cli: Failing to provision selected iOS device even though it appears to work on apple.com
Build/Submit details page URL
No response
Summary
Steps:
- I run
eas build --profile development --platform ios --localand log onto my Apple account. - It tells me “The provisioning profile is missing the following devices:” and displays my device id. I can confirm this is the true when I go to https://developer.apple.com/account/resources/profiles/list and look at the profile.
- After I select my device to provision again it says it “Updated existing profile:
*[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
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.5.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn
npm: 10.2.0 - ~/.nvm/versions/node/v18.17.1/bin/npm
Watchman: 2023.10.23.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.14.2 - /Users/trevor/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK:
API Levels: 28, 29, 30, 31, 33, 34
Build Tools: 30.0.3, 33.0.0, 34.0.0
System Images: android-34 | Google APIs ARM 64 v8a
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
npmPackages:
react: 18.2.0 => 18.2.0
react-native: ^0.72.5 => 0.72.5
npmGlobalPackages:
eas-cli: 5.6.0
Expo Workflow: bare
Error output
✔ Do you want to log in to your Apple account? … yes
› Log in to your Apple Developer account to continue
✔ Apple ID: … my@email.com
› Restoring session /Users/trevor/.app-store/auth/my@email.com/cookie
✔ Select a Team › Company Inc. - Company/Organization (a8s8d8f8)
› Provider Company Inc. (12345678)
✔ Logged in Local session
✔ Bundle identifier registered com.my.app
✔ Synced capabilities: No updates
✔ Synced capability identifiers: No updates
✔ Fetched Apple distribution certificates
✔ Fetched Apple provisioning profiles
The provisioning profile is missing the following devices:
- asdfasdfasdf123412341234 (iPhone 7) (created at: 2022-02-14T17:27:11.712Z)
✔ Would you like to choose the devices to provision again? … yes
✔ Select devices for the ad hoc build: › 5 devices selected
✔ Updated existing profile: *[expo] com.my.app AdHoc 1234567
Failed to provision 1 of the selected devices:
- asdfasdfasdf123412341234 (iPhone 7) (created at: 2022-02-14T17:27:11.712Z)
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
Reproducible demo or steps to reproduce from a blank project
Already mentioned in Summary.
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 7
- Comments: 24
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 solution from the top comment on the related Reddit post fixed it for me,
Looks like fix was merged in
v5.8.0I’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.
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:
Update, that worked. The registered devices were still listed and all were automatically 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).
@MidnightTinge Thanks! I will give this a shot.
This was the solution for me.
same problem with iPad Air it happened like 2 weeks ago