CoreTelephony eSIM functions not working on device

匆匆过客 提交于 2020-01-22 02:32:11

问题


I've been having some trouble implementing eSIM into an existing iOS carrier-application.

The setup

  • The app has received the public-cellular-plan entitlement which I understand is the entitlement giving me access to the eSIM functions of CoreTelephony.
  • I've imported the CoreTelephony framework in the app's target: General > Frameworks, Libraries, and Embedded Content which is marked as Do not Embed, same as other frameworks like CoreData and such.
  • I've imported the library in the class making the calls import CoreTelephony
  • I'm running a development build with the correct profile via Xcode on an iPhone XR, which has a data plan active so I'm sure it supports it.

The problem
Supposedly with all this, I should now have access to the eSIM functions like supportsCellularPlan but unfortunately it doesn't seem to be working:

let provisioning = CTCellularPlanProvisioning()
let supportsESIM = provisioning.supportsCellularPlan()

print("\(supportsESIM)") 
// This prints false but should be true as the XR supports eSIM

I've also tried via TestFlight with the distribution profile but same result.

Any ideas as to what I'm doing wrong?

来源:https://stackoverflow.com/questions/58630606/coretelephony-esim-functions-not-working-on-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!