I’ve enabled eSIM entitlements to test eSIM, however I’m all the time getting false for supportsCellularPlan and supportsEmbeddedSIM though my machine having the esim characteristic. I adopted every step from this stack overflow reply https://stackoverflow.com/a/60162323
however can’t set up the esim all the time getting .unknown in the results of addPlan.
Can anybody assist me out right here? under is the code I used:-
let provisioning = CTCellularPlanProvisioning()
let ctpr = CTCellularPlanProvisioningRequest()
ctpr.tackle = "tackle$"
ctpr.matchingID = "string$"
let supportsESIM = provisioning.supportsCellularPlan()
if #obtainable(iOS 12.0, *) {
let ctcp = CTCellularPlanProvisioning()
ctcp.addPlan(with: ctpr) { (outcome) in
change outcome {
case .unknown:
print("Sorry unknown error")
case .fail:
print("Oops! one thing went fallacious")
case .success:
print("Yay! eSIM put in efficiently")
@unknown default:
print("Oops! one thing went fallacious")
}
}
}
print(provisioning.supportsEmbeddedSIM)
print(supportsESIM)
that is the information.plist SS
Any assist could be significantly appreciated! Thanks