Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Xcode UIKit Document App template crashes under Swift 6

I'm trying to switch to UIKit's document lifecycle due to serious bugs with SwiftUI's version.

However I'm noticing the template project from Xcode isn't compatible with Swift 6 (I already migrated my app to Swift 6.). To reproduce:

  1. File -> New -> Project
  2. Select "Document App" under iOS
  3. Set "Interface: UIKit"
  4. In Build Settings, change Swift Language Version to Swift 6
  5. Run app
  6. Tap "Create Document"
  7. Observe: crash in _dispatch_assert_queue_fail

Does anyone know of a work around other than downgrading to Swift 5?

Xcode UIKit Document App template crashes under Swift 6
 
 
Q