CoreML encrypt exceptions in App Store

I have an app in the App Store that has been running fine. Starting yesterday it began throwing an exception during initialization in the App Store and during development:

"[0x000...***] during in one-time initialization function for my_model_name at /ViewController.swift:84"

Thread 2: EXC_BREAKPOINT (code=1, =***)

[coreml] Could not create persistent key blob for ----*** : error=Error Domain=com.apple.CoreML Code=8 "Fetching decryption key from server failed." UserInfo=NSLocalizedDescription=Fetching decryption key from server failed., NSUnderlyingError=0x2822c6a60 Error Domain=CKErrorDomain Code=6 "CKInternalErrorDomain: 2022" UserInfo=NSDebugDescription=CKInternalErrorDomain: 2022, RequestUID=----, NSLocalizedDescription=Request failed with http status code 503, CKErrorDescription=Request failed with http status code 503, CKRetryAfter=21, NSUnderlyingError=0x2822c6ac0 Error Domain=CKInternalErrorDomain Code=2022 "Request failed with http status code 503" UserInfo=CKRetryAfter=21, CKHTTPStatus=503, CKErrorDescription=Request failed with http status code 503, RequestUID=----, NSLocalizedDescription=Request failed with http status code 503, CKHTTPStatus=503

...

NSLocalizedDescription=Request failed with http status code 503, CKHTTPStatus=503

...

Help! Anyone know what is going on?

...

Also, when I try to generate a new key. I get this:

I'm the only admin developer on my account. I tried following its directions by signing out and back in with my Apple ID in preferences. Restarted XCode and still can't generate a new key, but still received the same error.

According to the 503, something is wrong with the encryption server.

It doesn't throw exceptions if remove mlmodel encryption. Meaning I remove the compiler flag "--encrypt model.mlpackage key.mlmodelkey". But I can't ship an app with encryption disabled... so I'm stuck with a non functional app

Were you able to solve the key generation issue? I'm having the same problem and I signed in with the same Apple ID

n/t

Hi, the problem comes and goes for us. See also: https://developer.apple.com/forums/thread/678599 A bit frustrating.

CoreML encrypt exceptions in App Store
 
 
Q