Every time I execute eas build --profile preview --platform ios
I get this error:
× Failed to fetch Apple provisioning profiles
Failed to setup credentials.
UnexpectedAppleResponse: The specified resource does not exist - There is no resource of type 'profiles' with id 'CWWAZ53HCG'
But when I run eas build --platform ios everything goes smoothly and I end up with successful build on eas cloud
Nope, cli successfully checks for certificate and finds it. Problem occurs only when it comes to provisioning profiles. When I build for “release” everything is okay (App Store profile is created) but when I try internal testing (ad hoc profile) cli fails
notice the id in the url bar. you should be able to find a provisioning profile corresponding to your app with the id that you got in the error message.
i suspect it is not there, perhaps it was manually deleted.
so you can go to your project page on expo.io, then in the sidebar choose “Credentials”, then go to “Ad hoc client” and remove the provisioning profile
Somehow old profile was oddly cached in my project and i could not get rid of it, I had no provisioning profiles associated to my project, so removing or reinstalling profiles/certificate did not help at all.
However I did manage to fix it by reinitializing the project from scratch. Nevertheless thank you for the valuable info about profile ids in Apple Dev, now I know where to look at)
could you possibly share the username and app slug for the app where you were having this issue? it’d be helpful for us to be able to investigate the root cause
For anyone still needing help with this I seem to have fixed it by using eas credentials and then using the option Remove Distribution Certificate and Remove Provisioning Profile from current project to remove the distribution certificate and remove the provisioning profile. Then I used the Ensure all credentials for project are valid to regenerate everything and it seems to have worked.