Xcode Cannot generate model encryption key

hello,
When I used xcode to generate the model encryption key, an error was reported, the error was 'Failed to Generate Encryption Key and Sign in with you Apple ID in the Apple ID pane in System Preferences and retry '.But I have logged in my apple id in the system preferences, and this error still occurs.I reinstalled xcode and re-logged in to my apple id. This error still exists.

Xcode Version 12.4
macOS Catalina 10.15.7

thanks
Any luck with this, been running into same issue ?
Also having this issue:

Xcode Version 12.4 (12D4e)
macOS Big Sur 11.2.3 (20D91)
We tested this on multiple different XCode/MacOS versions are having the issue on all platforms;
  • XCode Version 12.4 running on MacOS Big Sur 11.2.3

  • XCode Version 12.5 beta 3 (12E5244e) running on MacOS Big Sur 11.2.3

  • XCode Version 12.3 (12C33) running on MacOS Catalina 10.15.6

Surprisingly, on April 1st at approximately 5pm eastern time I installed XCode 12.5 beta 3 and was able to generate the key. However this morning at 9am eastern time I am no longer able to generate it and it fails with same issue.
I'm having the same issue

macOS 10.15.7
Xcode 12.4


Same issue

macOS Big Sur 11.3 Beta
Xcode 12.4


When I tried to use Xcode 12.5 RC, it successfully generate the encryption key.

So I think maybe the next Xcode version will solve this issue.

Xcode 12.5 will solve this issue.
I'm also on MacOS Big Sur with Xcode 12.5, anyone had success? I'm receiving exactly the same error.
Same, on Big Sur version 11.3.1 with Xcode 12.5 (12E262), no success.

Has anyone had any success with this?

Big Sur version 11.3.1 with Xcode 12.5 (12E262), no success. 

Could you please once more try after activating iCloud in System Preferences > Apple ID? There are no known issues on Version 12.5 (12E262) and I confirmed today that I can generate encryption keys and use that to encrypt my CoreML models.

Thanks, iCloud was the issue. Working now.

I'm running into this same problem.

  • Xcode Version 13.2.1
  • macOS Monterey 12.1

Same. I have confirmed that iCloud is activated from System Preferences, but still doesn't work.

  • Xcode Version 13.2.1
  • macOS Monterey 12.1

I too am encountering this issue with the latest Xcode and macOS version. Filed FB9856601.

Running into the same issue with

 - macOS Monterey 12.1 (21C52)

  • XCode 13.0.0 (13A233), 13.1 (13A1030d) and 13.2.1 (13C100)

This issue continues to occur with Xcode 13.3 beta (13E5086k) and macOS 12.2 (21D49).

This was an issue on the server side for key generation logic. It should be resolved now. It should work with any Xcode 13.0 on any macOS Monterey. Please file a bug report on https://feedbackassistant.apple.com if you are still facing the issue. Sorry about the inconvenience.

Check your Program Roles in App Store Connect. https://developer.apple.com/support/roles/ I think 'Create keys' means model encryption key, it needs above 'admin' role.

Hi, I'm having this problem in production. Can't generate new keys. App in production is throwing exceptions.

Same here, the model load request fails due to a 503 error. Filed FB11653274.

Error Domain=com.apple.CoreML Code=8 "Fetching decryption key from server failed." UserInfo={NSLocalizedDescription=Fetching decryption key from server failed., NSUnderlyingError=0x28b08a310 {Error Domain=CKErrorDomain Code=6 "CKInternalErrorDomain: 2022" UserInfo={NSDebugDescription=CKInternalErrorDomain: 2022, RequestUUID=F7349D6B-6F83-4C92-84AD-51AF9D682735, NSLocalizedDescription=Request failed with http status code 503, CKErrorDescription=Request failed with http status code 503, CKRetryAfter=32, NSUnderlyingError=0x28b08a5b0 {Error Domain=CKInternalErrorDomain Code=2022 "Request failed with http status code 503" UserInfo={CKRetryAfter=32, CKHTTPStatus=503, CKErrorDescription=Request failed with http status code 503, RequestUUID=F7349D6B-6F83-4C92-84AD-51AF9D682735, NSLocalizedDescription=Request failed with http status code 503}}, CKHTTPStatus=503}}}

Happening in 14.2.

This issue still continues with Xcode 14.2. Any solution?

I have the same issue with macOS Moneterey 12.6 and Xcode 14.2 (14C18) (also Xcode 13 had the same but I don't have the build number as I upgraded to Xcode 14.2).

Same issue on Ventura 13.2. My FB number is FB11969934

Same issue with macOS Monterey V 12.6.2 and Xcode 14.2. I signed out of iCloud on my MacBook and re-signed in but that did not work.

Xcode Cannot generate model encryption key
 
 
Q