EXC_BAD_INSTRUCTION from com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export

后端 未结 1 2004
北荒
北荒 2021-02-14 00:25

I have an app that runs fine on iOS, but when running with catalyst, it gives me this crash intermittently if I swipe to another virtual Desktop on macOS, and then back, for abo

相关标签:
1条回答
  • 2021-02-14 00:41

    I've wasted so much time trying to understand the source of the problem and hope that this answer helps many others.

    This problems seems to persist now since a long time and has not been fixed, nor understood. But the big hint I've read in the comments: This crash happens only when the app is run from within Xcode.

    Another important hint: You can can run your build product directly from Finder without crashing. Even if it is a "Debug" build.

    Based on this, I've come to the conclusion that the problem is related to the Debug execution environment and I found the solution: Disable "Debug XPC services used by this application"
    There must be some bug in the debugging code used by this option.

    You can find this option in your targets scheme.

    1. Click on your target in the window bar
    2. Select "Edit Scheme..."
    3. Make sure "Run" is selected and remove the checkmark for "Debug XPC services used by this application"

    I hope this helps everybody!

    0 讨论(0)
提交回复
热议问题