반응형
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이라는건 처음들어보는데 스레드 관련 이슈 디텍트 해준다는게 맘에든다. 써본적은 없지만 인지는 하고 있도록
반응형
'Flutter' 카테고리의 다른 글
GestureDetector 텅빈영역 터치 감지하기 (0) | 2025.01.09 |
---|---|
dynamic사용시 주의점 (0) | 2024.12.31 |
bloc에서 copyWith을 직접만들면 안되는 이유 (0) | 2024.12.30 |
flutter gpu 예제 분석 (4) | 2024.09.11 |
연속적인 애니메이션을 만드는 방법 (0) | 2024.08.22 |
댓글