EDITED: that was the answer before you completely changed your question.
Which tutorial ? It is probably for older Xcode 12.
Now, in Xcode 13,
- if interface is storyboard, lifecycle is UIKit App Delegate
- if interface is SwiftUI, lifecycle is SwiftUI App
previously you could choose UIKit App Delegate for SwiftUI interface.
So, now with Xcode 13, the choice of lifecycle is determined by the choice of interface. No need to allow a selection.
For your new question
This error does not come up when I use other versions of XCode. Is there any way of fixing this? I am using macOS Monterrey
Xcode: Please be more specific. Which other versions exactly.
Did you read this: https://stackoverflow.com/questions/70608395/xcode-13-2-1-preview-not-working-but-simulator-works