Code block in DispatchQueue.main.async is never getting executed
问题 I am working on a bundle project in swift which is used as an authorization plugin and in the bundle project I am doing API request call using URLSession.shared.dataTask and in the call back I receive, I am trying to update the UI and as updating UI has to be done using main thread I am using DispatchQueue.main.async and the code inside DispatchQueue.main.async is never getting executed! This works perfectly fine in a normal MacOS Cocoa application but the problem persists with Bundle project