ESIM: Always taken to unknown state for iOS 14.0, where it work perfect for iOS 13.0

I work for one of the networks. I am able to successful download the eSIM in iPhone for iOS 13.*.

Where I was taken to unknown state (CTCellularPlanProvisioningAddPlanResult) in iOS 14.0 always also it prompt the os screen to install eSIM("Set up Mobile Plan")

Please let me know why it take to unknown state always and why OS screen popup ?, please let me know if any configuration needed specific for iOS 14.x

Also attached the configuration & prototype code for your reference

Code Block  if #available(iOS 12.0, *) {
      hud.show(animated: true)
      let plan = CTCellularPlanProvisioning()
      self.request = CTCellularPlanProvisioningRequest()
      self.request?.address = "" // SMDP Address
      self.request?.matchingID = ""  // Acitvation code.
      if let validRequest = self.request {
        weak var weakSelf = self
        plan.addPlan(with: validRequest) {[weak self] result in
          self?.hud.hide(animated: true)
          switch result {
          case .success:
            weakSelf?.alertMessageToUser(title: "Hurray !...", message: "ESIM Downloaded Successfully")
            print("Successful")
          case .fail:
            print("ESIM Download failed, contact your carrier")
          case .unknown:
            print("Unknown details, contact your carrier")
          @unknown default:
            print("Unknown details, CONTACT CARRIER")
          }
        }
      }
    }


Code Block <key>CarrierDescriptors</key>
<array>
<dict>
<key>MCC</key>
<string></string> // Country Code
<key>MNC</key>
<string></string> //Network Code
</dict>
</array>
  <key>com.apple.security.network.server</key>
  <true/>
  <key>com.apple.security.network.client</key>
  <true/>
  <key>com.apple.CommCenter.fine-grained</key>
  <array>
    <string>spi</string>
    <string>sim-authentication</string>
    <string>identity</string>
  </array>
  <key>com.apple.wlan.authentication</key>
  <true/>
  <key>keychain-access-groups</key>
  <array>
    <string>apple</string>
    <string>com.apple.identities</string>
    <string>com.apple.certificates</string>
  </array>
  <key>com.apple.private.system-keychain</key>


I am successful in download eSIM to iPhone for 13.*, Where I was getting the below error for iOS 14.0.1

Logs(OSACTIVITYMODE enabled)
Code Block
Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}


BackTrace
Code Block
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
 * frame #0: 0x0000000104cf9428 My Optus`closure #1 in ViewControllerTwo.installESIM_1(result=unknown, self=0x0000000107904d80, weakSelf=0x0000000107904d80) at ViewControllerTwo.swift:44:25
  frame #1: 0x0000000104cf99a4 My Optus`thunk for @escaping @callee_guaranteed (@unowned CTCellularPlanProvisioningAddPlanResult) -> () at <compiler-generated>:0
  frame #2: 0x0000000194fe412c CoreTelephony`60-[CTCellularPlanProvisioning addPlanWith:completionHandler:]_block_invoke + 28
  frame #3: 0x0000000195053268 CoreTelephony`90-[CoreTelephonyClient(CellularPlanManager) addPlanWith:appName:appType:completionHandler:]_block_invoke + 36
  frame #4: 0x0000000105077b68 libdispatch.dylib`_dispatch_call_block_and_release + 32
  frame #5: 0x00000001050795f0 libdispatch.dylib`_dispatch_client_callout + 20
  frame #6: 0x0000000105088890 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1000
  frame #7: 0x0000000194a271e4 CoreFoundation`CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
  frame #8: 0x0000000194a213b4 CoreFoundation`__CFRunLoopRun + 2508
  frame #9: 0x0000000194a204bc CoreFoundation`CFRunLoopRunSpecific + 600
  frame #10: 0x00000001ab4a5820 GraphicsServices`GSEventRunModal + 164
  frame #11: 0x00000001973c4734 UIKitCore`-[UIApplication _run] + 1072
  frame #12: 0x00000001973c9e10 UIKitCore`UIApplicationMain + 168
  frame #13: 0x0000000104cfb688 My Optus`main at AppDelegate.swift:12:7
  frame #14: 0x00000001946e7e60 libdyld.dylib`start + 4

Hi, the same issue here. Do you solved this error ?
Where I can find a way out from this issue on iOS 14.1?
Hi. Same issue on iOS 14.2 and Xcode 12.2 rc 12B5044c
Is there any updates?

how can we fix this issue, any updates?

Hi, guys! Did you solve this problem? 

Hi guys, have anyone solved this problem?

I have the same issue with IOS 15.4.1!! any update on this

You need to call this function in background thread, asynchronously

DispatchQueue.global().async {
    plan.addPlan(with: validRequest) {[weak self] result in
        //...
   }
}

Any news guys?

Any update on this guys please ?

ESIM: Always taken to unknown state for iOS 14.0, where it work perfect for iOS 13.0
 
 
Q