XPC Connection Error

I have an accessory with MFi authenticaiton passed(got 0xAA05) and identification accepted (got 0x1D02). But when I try to open the target stream by using iAP2 EA session framework, I always enounter the same error looking like:

XPC connection error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.accessories.externalaccessory-server was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.accessories.externalaccessory-server was invalidated from this process.}

anybody can tell me what it related with? And what can I do to go through it quickly? Thank you much in advance.

Answered by DTS Engineer in 840478022

anybody can tell me what it related with? And what can I do to go through it quickly?

So, the first thing I would check is that you added the "UISupportedExternalAccessoryProtocols" entry your Info.plist and that that values in that array are all correct. Also, make sure you're running the iOS 18.5+, as there was a serious bug that we recently fixed.

Beyond that, the next step here would be to capture the console log from the time the failure occurred. The error itself is a generic "the connection was closed", but the daemon should have logged more about what the actual issue was.

-Kevin

anybody can tell me what it related with? And what can I do to go through it quickly?

So, the first thing I would check is that you added the "UISupportedExternalAccessoryProtocols" entry your Info.plist and that that values in that array are all correct. Also, make sure you're running the iOS 18.5+, as there was a serious bug that we recently fixed.

Beyond that, the next step here would be to capture the console log from the time the failure occurred. The error itself is a generic "the connection was closed", but the daemon should have logged more about what the actual issue was.

-Kevin

XPC Connection Error
 
 
Q