Test crash cases on different crash reporting tools in Unity environment.
- Make sure the platform is switched to Android.
- Check the Development Build and Script Debugging.
- In Player Setting, set the Package Name if needed.
Unity -> Xcode
- Make sure the platform is switched to iOS.
- Check the Development Build and Script Debugging.
- In Player Setting, set the Bundle Identifier if needed.
Xcode -> ipa: General Crashes
- In target setting, apply the Provision Profile for signing.
- In Build Settings, set Apple LLVM - Language: C Language Dialect to GNU99 for supporting asm call.
- Same, set Apple LLVM - Objective C: Enable Objective-C Exception to Yes for supporting objective C exception crash.
- Copy following files in Assets/Plugins/iOS to Unity-iPhone/Libraries/Plugins/iOS:
CRLFramelessDWARF_arm32.S
CRLFramelessDWARF_arm64.s
CRLFramelessDWARF_i386.s
CRLFramelessDWARF_x86_64.s
Xcode -> ipa: Swift
- Convert and update for late swift syntax.
- In Build Settings, set Build Options: Always Embed Swift Standard Libraries to Yes.
- Find Unity-iPhone/Libraries/Plugins/iOS/CrashFunctionSwiftWrapper.swift and remove reference.
- Add it back to iOS folder through Xcode, and select Create Bridging Header.
- In Build Settings find the header name under Swift Compiler - General: Objective-C Generated Interface Header Name, copy it.
- In Unity-iPhone/Libraries/Plugins/iOS/CrashFunctionWrapper.h, import that header.