본문 바로가기
Flutter

ios에서 크래시가 났을때 분석방법

by 붕어사랑 티스토리 2025. 1. 2.
반응형

 

 

product -> scheme -> edit scheme에서 diagnostics탭에 Address Sanitizer를 클릭하면ASan이 돌게 된다.

 

이 옵션을 활성화 하면 앱이 죽었을 때 코드위치도 깔끔하게 나옴

 

 

https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early

 

Diagnosing memory, thread, and crash issues early | Apple Developer Documentation

Identify runtime crashes and undefined behaviors in your app during testing using Xcode’s sanitizer tools.

developer.apple.com

 

 

 

 

아래와 같은 기능들이 더있으니 참고

 

 

  • Address Sanitizer—The ASan tool identifies potential memory-related corruption issues.
  • Thread Sanitizer—The TSan tool detects race conditions between threads.
  • Main Thread Checker—This tool verifies that system APIs that must run on the main thread actually do run on that thread.
  • Undefined Behavior Sanitizer—The UBSan tool detects divide-by-zero errors, attempts to access memory using a misaligned pointer, and other undefined behaviors.

 

TSan이라는건 처음들어보는데 스레드 관련 이슈 디텍트 해준다는게 맘에든다. 써본적은 없지만 인지는 하고 있도록

반응형

댓글