I use await MainActor.run { main thread stuff } instead of DispatchQueue.main.async when I am in an async func. Is this comparable to Task { @MainActor in main thread stuff }, which is really new to me, or are there differences?
Post
Replies
Boosts
Views
Activity
Are you storing your project files in iCloud Drive maybe? And use Xcode also on another Mac?
That may be the cause of duplicate files with suffix 2, iCloud not working 100% all of the time?
I have exactly the same experience, using Xcode 12.5 and an iPhone 7 with iOS 14.4.2.
Did not yet find a solution or workaround...
Anyone tried it with 14.6 yet?