Error 0 on DeviceCheck API

I am trying to generate DeviceCheck token with DCDevice.current.generateToken. There was no problem at first, but after a few days, it started to give the error below:


The operation couldn’t be completed. (com.apple.devicecheck.error error 0.)


Interesting point is that, the problem starts and ends at the same time on all devices, at random time periods of the day. My question are;


* What "Error 0" means?

* I thought generateToken method generates the token in the device offline, but it seems not (by starting to give error on generateToken simultaneously on all devices), can you give some details on how generateToken works?

* Do you have any comments on starting to get "Error 0" on all devices at the same time?


Thanks.

Same problem here. We have a valid App ID set up in the developer portal. The device supports device check, and we're on iOS 12.


There's a frustrating lack of documentation or help surrounding this.

Hi, we are currently facing exactly the same error on an iPhone 12 with iOS 14.5. It used to work just fine the past few days and weeks. But suddenly today, when trying to invoke DCAppAttestService.shared.attestKey() we are also getting the same error:

Error Domain=com.apple.devicecheck.error Code=0

Are there any tips on how to solve this issue?

Hi guys, we're also facing the same error with device running under ios 14.5, in a managed app (User Enrollment flow). in unmanaged app device token is generated as expected.

Error 0 on DeviceCheck API
 
 
Q