datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2.02k stars 364 forks source link

Xcode 14.1 warning: This method should not be called on the main thread as it may lead to UI unresponsiveness. #289

Open JuhaO81 opened 1 year ago

JuhaO81 commented 1 year ago

When using TrustKit Xcode 14.1 gives runtime warnings. Even happens with example project as well as our own app.

Screenshot 2022-11-17 at 9 10 13

kaden-weber commented 1 year ago

My team would also appreciate a fix here 🙏

eryalparslan commented 1 year ago

Same here. Xcode generated 77 warnings about this.

markph0204 commented 1 year ago

Please recheck -- with Xcode 14.3 and latest code changes, this is working now.

nikolaykasyanov commented 1 year ago

Isn't the issue here that your URLSession has the main queue set as its delegate queue?