Invalid ISO7816 APDU detected

I'm creating an app using CoreNFC to communicate with a device.

Initial communication works as intended, but the last response from the device fails after authentication is finished.

When I respond with the last response in my .received(): try await cardAPDU.respond(response: responseAPDU)

It goes through, but then .readerDeselected is triggered. Looking in the more detailed errors in console is see the following:

-[_NFCardSession validateReceivedAPDU:]:236 Invalid ISO7816 APDU detected, (null)

Note: The same behviour works as intended on Android, so the response should be fine from the device.

We will need some diagnostic information about your app and code to be able to diagnose this issue.

For that purpose, please open a support request at https://developer.apple.com/contact/request/code-level-support/ and reference this forum thread in the "Did someone from Apple ask you to submit ..." section


Argun Tekant /  DTS Engineer / Core Technologies

Invalid ISO7816 APDU detected
 
 
Q