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

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)