Steps:
In Xcode, choose Product → Profile
Use the standard SwiftUI App template
Keep the template settings at their defaults
Start a profiling session
If I stop the session while the app is still on the home screen, everything usually completes normally
Start another profiling session and interact with the app a bit more
Observed behavior:
Occasionally, after running a longer session, I see a message related to ktrace
Even after this appears, I can still sometimes run another short profiling session successfully
In other cases, I see a different message indicating that data could not be collected
I have also seen a message indicating that no SwiftUI data was available (I don’t currently have a screenshot for this case)