SGNLA / CrashReportUnity

Test crash cases on different crash reporting tools in Unity environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CrashReportUnity

Test crash cases on different crash reporting tools in Unity environment.

Build on Android

  1. Make sure the platform is switched to Android.
  2. Check the Development Build and Script Debugging.
  3. In Player Setting, set the Package Name if needed.

Build on iOS

Unity -> Xcode

  1. Make sure the platform is switched to iOS.
  2. Check the Development Build and Script Debugging.
  3. In Player Setting, set the Bundle Identifier if needed.

Xcode -> ipa: General Crashes

  1. In target setting, apply the Provision Profile for signing.
  2. In Build Settings, set Apple LLVM - Language: C Language Dialect to GNU99 for supporting asm call.
  3. Same, set Apple LLVM - Objective C: Enable Objective-C Exception to Yes for supporting objective C exception crash.
  4. 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

  1. Convert and update for late swift syntax.
  2. In Build Settings, set Build Options: Always Embed Swift Standard Libraries to Yes.
  3. Find Unity-iPhone/Libraries/Plugins/iOS/CrashFunctionSwiftWrapper.swift and remove reference.
  4. Add it back to iOS folder through Xcode, and select Create Bridging Header.
  5. In Build Settings find the header name under Swift Compiler - General: Objective-C Generated Interface Header Name, copy it.
  6. In Unity-iPhone/Libraries/Plugins/iOS/CrashFunctionWrapper.h, import that header.

About

Test crash cases on different crash reporting tools in Unity environment.


Languages

Language:C# 64.1%Language:Objective-C 17.4%Language:Assembly 13.7%Language:Objective-C++ 4.4%Language:Swift 0.4%