Post

Replies

Boosts

Views

Activity

SwiftUI Document app always displays file doesn't exist alert on startup
I'm hitting a wall with this one, it seems to be an issue on SwiftUI's side... I have a SwiftUI document based app, this is the current code: @main struct MicroApp: App { 	@SceneBuilder var body: some Scene {     DocumentGroup(newDocument: MicroDocument()) { fileConfiguration in 			// other code used to be here     }   } } Every time I start the app I get an alert: "The document “my.micro” could not be opened. The file doesn’t exist." Update: Joke's on me :) After doing a text search in the project folder I figured I had "my.micro" as a command line argument to the app in Xcode. Not sure if the error message can be improved in any way ...
0
0
547
Nov ’20