Open mitko25522 opened 1 week ago
Hello @mitko25522, thanks for reaching out.
The swizzled function is called in the same thread the original call is made. Are you fetching this data also in the main thread?
Hello @brustolin, thank you for the quick reply and the information. There might be a case where we are fetching the data in the main thread. I will check.
Platform
iOS
Environment
Develop
Installed
CocoaPods
Version
8.40.1
Xcode Version
16.1
Did it work on previous versions?
No response
Steps to Reproduce
Expected Result
There shouldn't be a warning that the main thread is hanging.
Actual Result
When fetching core data objects I get a warning that the swizzle method is causing the main thread to hang:
Performing I/O on the main thread by reading or writing to a database can cause hangs.
Are you willing to submit a PR?
No response