Xcode can't download provisioning profiles, I m getting the error:
Error Downloading Profiles
Xcode encountered a problem downloading profiles for team XXX with account xxxxx@xx.com
The error detail:
Error Domain=IDEProvisioningPortalErrorDomain Code=3 \"Communication with Apple failed\" UserInfo={NSLocalizedDescription=Communication with Apple failed, NSLocalizedRecoverySuggestion=An unexpected error occurred. Profile download succeeded but there wasn't any profile data in the payload.}
- I tried to restart Xcode, Mac but it's not working!
- I also tried to remove my account and add it again
- I can login to my account via web
- I can download provisioning profiles from developer portal and install them
Looks like a bug with Xcode 10, and it was observed earlier with Xcode 8 as well as stated at Xcode Profiles Won't Download
As a workaround, you can try the following steps,