Detect iPhone is locked for esim provisioning.

I have to check if the device is locked prior to Esim provisioning.

I have tried supportsCellularPlan() supportsEmbeddedSIM but even if the device is carrier locked it returns true

Can anyone guide what can be the workaround?

CTCarrier is deprecated since iOS 16.0 and will be returning stubbed data.

how were you able to check if the device is carrier locked or not for esim provisioning?

Detect iPhone is locked for esim provisioning.
 
 
Q