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
487
Nov ’20
No signpost data when profiling tests?
I'm trying to profile code that emits signpost data in a test.I right click on the "run" button to the left of the test and click "profile "testXXX()", then run the signpost instrument but none of the signpost data shows up.THENI'll just re-run Instruments and profile the app bundle that the test bundle belongs to and voila, the test along with the signpost data shows up in Instruments.Is there a step I'm missing or this is just a bug?
1
0
776
Feb ’20