kstenerud / KSCrash

The Ultimate iOS Crash Reporter
MIT License
4.25k stars 712 forks source link

Can't get crash log when SWIFT_OBJC_INTEROP_MODE set to objcxx #460

Open Echo2087 opened 7 months ago

Echo2087 commented 7 months ago

Xcode15 can mix swift and c++, change project SWIFT_OBJC_INTEROP_MODE from objc to objcxx, then KSCrash can't catch the crashes, Is there any idea to fix it?

For Xcode15: https://developer.apple.com/videos/play/wwdc2023/10172/

GLinnik21 commented 6 months ago

Hello! Currently, Swift/C++ interoperability, especially in the way KSCrash interacts with these settings, hasn't been fully explored or supported.

You might want to try an experimental feature in KSCrash that enables catching C++ exceptions in dynamic libraries. Specifically, the function enableSwapOfCxaThrow might help.