Hi,
Our application is currently crashing in production, only for users with iPhone and iPad running iOS and iPadOS 15 through all releases. Unfortunately, we cannot reproduce the issue, neither through direct build from Xcode or using build from app store, so it seems to happen intermittently.
From third party crash analytics, it seems to happens mostly of background and they highlighted this as the issue.
Fatal Exception: NSInvalidArgumentException
-[_NSXPCDistantObject cleanupWithCompletionHandler:]: unrecognized selector sent to instance 0x2813293b0
From the Xcode crashlogs, it highlighted this which intrigue me a bit and it also exists on the stack trace from the third party (you can see they call a same function __cleanupWithCompletionHandler
there).
5 Pegasus __58-[PGPictureInPictureProxy __cleanupWithCompletionHandler:]_block_invoke
It seems that the crash happens probably because some process related to PIP feature that triggered this function that is handled by Pegasus framework.
Any idea why this happens and is there anything i can do to prevent the crashes from happening again ?