Xcode 7 (iOS 9) Communication error: <OS_xpc_error: <error: 0x10a1abb40>

Can someone help me figure out the following error that I get when starting the application?

Communications error: <OS_xpc_error: <error: 0x10a1abb40> { count = 1, contents = "XPCErrorDescription" => <string: 0x10a1abef0> { length = 22, contents = "Connection interrupted" } }> 
+5
source share
3 answers

If you use the application in an iOS simulator, it uses the XPC services API for interprocess communication, and any breakpoint or other interrupt can cause this error.

You can refer to this apple doc

In the Error Handling section

An interrupt handler that is called when a process crashes at the other end of a connection or otherwise closes its connection.

Debugging the application on the device should not have such problems.

+7
source

I had the same problem when starting my application and keyboard extension (I am creating a custom keyboard). Since you do not provide sufficient information, we do not know when this happens to you in this way. Therefore, I will leave it here if you are also working in an extension, if not .. I hope this will be useful to someone else.

  • Open the info.plist file from your target keyboard.
  • Set Yes to RequestsOpenAccess
  • Run the application on the device
  • Go to settings, general, keyboards, keyboards
  • Select keyboard
  • Change "Allow full access" to "True."
+1
source

Notice how often you access the database. I have the same problem too. I work with chat using Firebase. Therefore, in my case, I made a mistake when I too often get / put data from / to the database.

0
source

Source: https://habr.com/ru/post/1233619/


All Articles