Xcode console 디버깅이 잘 안되고 자꾸만
cannot find ‘$__lldb_injected_self’ in scope 블라블라 에러가 떴다.
왜그러나 검색을 해보니까 처음에 뜨는게 아래 링크..
https://forums.swift.org/t/xcode-12-5-cannot-find-lldb-injected-self-in-scope/48650/1
Xcode 12.5 - cannot find '$__lldb_injected_self' in scope
I'm currently investigating a lldb regression on Xcode 12.5. The actual code involves complicated Swift logics: many levels of generic, protocols, extensions, etc, so I haven't figured out how to reproduce in a small sample code. Here is what happens. po s
forums.swift.org
It turns out to be related to generic types and -disable-reflection-metadata compiler flag.
-disable-reflection-metadata compiler flag 랑 관련이 있다는거 같은데, 이게 뭐지?
reflection metadata를 disable하면 LLDB가 효과적으로 손상된단다...(번역기돌림..ㅋㅋㅋ)
https://developer.apple.com/forums/thread/720932
Disabling Reflection Metadata Level | Apple Developer Forums
Hi, We are been working to reduce our app size for some time now. One my research I got to know about Reflection MetaData Level in build settings. Disabling (Setting it to None) it for all the modules have reduced around 2 MB of my App size. But wanted to
developer.apple.com
대충 Build Setting에 있는 설정값인가 보다 하고 확인해보니 All로 설정되어 있네.. disable시킨거 같진 않다.
Custimized를 선택하고 확인해 보니 의심가는 부분이 몇군데 있는데..
Apple Clang - Code Generation / Swift Compiler - Code Generation의 Optimization Level이 Fastest.../ Optimize for Speed... 블라블라로 설정되어 있네.
이렇게 설정한 이유를 확인해봐야 하니 일단 Debug 모드에서만 None / No Optimiation으로 수정했다.
Console 디버깅이.. 일단은 잘 된다.
으, 진작 수정할껄.
'개발 > 알고있는거같았지만' 카테고리의 다른 글
apk 설치 방법 (0) | 2024.08.19 |
---|---|
GA를 사용한 트래킹 관리 방법 (0) | 2023.06.08 |
[Xcode] Mac OS 업데이트 후 pod install 오류 (0) | 2022.12.02 |
[Xcode] build cache 삭제 (0) | 2022.11.25 |
[Xcode] 케이블 연결 없이 단말에 앱 설치 방법 (0) | 2022.09.21 |