투케이2K

280. (TWOK/ERROR) [Ios] Thread running at .. waiting on a thread without a QoS class specified 본문

투케이2K 에러관리

280. (TWOK/ERROR) [Ios] Thread running at .. waiting on a thread without a QoS class specified

투케이2K 2024. 9. 18. 14:06
반응형

[환경 설정 및 설명]

프로그램 : Xcode

설 명 : [Ios] Thread running at User-interactive quality-of-service class waiting on a thread without a QoS class specified

 

[에러 원인]

1. 스레드 처리 간 디스패치 큐의 서비스 품질(QoS) 클래스에 불일치가 있으면 앱이 우선 순위 처리를 위해 표시 되는 경고 알림

 

[해결 방법]

1. 해당 경고가 표시 되는 곳에 DispatchQueue 백그라운드 작업 처리 수행

        // [HTTPCookieStorage 데이터 삭제]

        let background_removeCookies = DispatchQueue(label: "background_removeCookies", qos: .background)

        background_removeCookies.async {[weak self] in

            HTTPCookieStorage.shared.removeCookies(since: Date.distantPast)

        }

2. Xcode 툴에서 스레드 경고가 표시 되지 않게 알림 표시 비활성 처리

>> EditScheme > Diagnostics > Thread Performance Checker > 비활성


반응형
Comments