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
Post not yet marked as solved Up vote post of lake-tang Down vote post of lake-tang
6.5k views
  • Happening in 14.2.

Add a Comment

Replies

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.

  • Confirmed, thanks!!

Add a Comment

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}}}
  • Yes! Exact same error I'm getting. https://developer.apple.com/forums/thread/716989

    HTTP 503 indicates the servers provisioning the keys are barfing.

  • Jordan, what version is your XCode? I'm on 13.2.1 so I'm wondering if that's my problem

  • How did you get this log? I see nothing in Console :(

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 is FB11969934

Add a Comment

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.

Same here, with:

  • macOS 12.6 (21G115)
  • XCode Version 14.2 (14C18)

Anyone had any luck resolving this?

I have the same problem with macOS 13.2.1 and Xcode Version 14.2. changing the Xcode version to 14.0.1 and signing out and signing in again to iCloud,AppleID on my Mac did not solve the problem.

I have contacted fedbackassistant but have not received a reply in over 2 weeks. I would like to know the solution ASAP. My FB number is FB11990287

  • Same issue here on same macOS/Xcode versions. FB12024915

  • I'm not sure why, but I was able to resolve the issue by following these steps:

    1.Turned on "Advanced Data Protection for iCloud" in iCloud settings.

    2.Added a "Recovery Contact" in iCloud settings.

    3.Went to Xcode -> Preferences -> Accounts and signed in again with the same account.

    Alternatively, the issue may have been resolved by some server-side error on Apple's end that got resolved over time. Just for reference.

Add a Comment