Search code examples
iosobjective-ccocoaios9ios9.1

'Communications error: <OS_xpc_error:' while recording video


I am recording video using my application for 4-5 minutes, each time application shows following message in console and crashes.

warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.

Communications error: <OS_xpc_error: <error: 0x19d846af0> { count = 1, contents =
"XPCErrorDescription" => <string: 0x19d846e50> { length = 22, contents = "Connection interrupted" }
}>

iOS version : 9.1
Device : iPhone 5S, 6 and 6+.

Same thing works like charm in other version below 9.1.

is anyone aware about this error or any resolution for same?


Solution

  • Finally after 3 days of sweating & findings, it proven worthy.

    Outline about XPC error :

    'XPC' is Apple's inter-process communication (IPC) system. Some functionality (such as h.264 encoding/decoding, or interacting with camera hardware) is handled by a separate app - a daemon - that runs all the time in the background.

    'Connection interrupted' means that the IPC connection was interrupted for some reason. Perhaps it took too long, perhaps the timing was just bad and the daemon or your app needed to urgently do something else.

    More detail about XPC services

    Solution

    Its internal communication error, when your app communicates with device hardware such error occurs. Wait for apple to release new update of OS, when available download it. As most of the time it happens due to some glich in release OS version.

    I faced same issue in iOS 9.1. Downloaded new version iOS 9.2 and it fixed without writing single line of code.

    Thanks.