You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xcode's Thread Sanitizer warns about potential UI hangs due to synchronous file reading on the main thread in PersistentStorage.swift. This issue is highlighted by Xcode's known hang system, which suggests migrating away from String(contentsOf:, encoding:).
Expected Behavior
No warnings should be present, and file reading operations should not risk UI hangs.
Current Behavior
Xcode displays a warning for potential UI hangs and suggests an enhancement to the code.
Summary
Xcode's Thread Sanitizer warns about potential UI hangs due to synchronous file reading on the main thread in
PersistentStorage.swift
. This issue is highlighted by Xcode's known hang system, which suggests migrating away fromString(contentsOf:, encoding:)
.Expected Behavior
No warnings should be present, and file reading operations should not risk UI hangs.
Current Behavior
Xcode displays a warning for potential UI hangs and suggests an enhancement to the code.
Specific Location
File:
PersistentStorage.swift
Possible Solution
Use
url.absoluteString
insteadSteps to Reproduce
PersistentStorage.swift
.getEventsString(eventBlock:)
function.String(contentsOf:, encoding:)
.Environment
The text was updated successfully, but these errors were encountered: