Gathering Required Information for Troubleshooting Xcode Previews or Swift Previews Issues

This thread has been locked by a moderator; it no longer accepts new replies.

Hi,

You're here because your project has issues related to Xcode Previews or Swift Previews. The issue you're experiencing may be the result of any of the following:

  • An error in your SwiftUI app, Xcode previews, or on-device previews.
  • A configuration error in your Xcode project, including any third-party dependencies or packages.
  • A system issue in the operating system, SwiftUI, or in Xcode Previews.

Based on your request, I need more information about your SwiftUI app when rendering Xcode Previews or on-device previews. Specifically, I’ll need the diagnostics Swift Previews generates to make sure I understand the error encountered by the preview system. Please create a report in Feedback Assistant to share the details requested in the instructions below.

For issues with macOS, Mac Catalyst, on-device iOS, or on-device visionOS previews, perform the following steps to gather diagnostics:

  1. Download and install the Swift Previews logging profile for your device.
  2. Reproduce the error while previewing on device, taking note of the timestamp when the error occurred.
  3. Attach the Previews diagnostics, sysdiagnose from your Mac, a sysdiagnose from the previewing iOS or visionOS device.

For issues with Xcode Previews, perform the following steps to gather diagnostics:

  1. Download and install the Swift Previews logging profile for your device.
  2. Reproduce the error in Xcode Previews, if you haven’t already done so.
  3. If an error banner appears in the canvas, click the "Diagnostics" button within the banner, then go to Step 5; otherwise, continue to Step 4.
  4. If the error banner is missing, navigate to the menu in Xcode: Editor > Canvas > Diagnostics
  5. In the presented sheet, click the "Generate Report" button.
  6. Attach a zip file containing the diagnostic report to your bug report (it will be named something like previews-diagnostics-0123456789.zip).

Submitting your feedback

Before you submit to Feedback Assistant, please confirm the following information is included in your feedback:

  • with the Swift Previews logging profile installed, attach the sysdiagnose logs gathered after reproducing the issue
  • the Previews diagnostics generated by Xcode
  • timestamp identifying when the issue was reproduced
  • focused sample Xcode project that reproduces the issue (if applicable)
  • screenshots or videos of the error (optional)

Please include all requested information to prevent delays in my investigation.

After your submission to Feedback Assistant is complete, please respond to your original Forums post with the Feedback ID. Once received, I can begin my investigation and determine if this issue is caused by an error within your SwiftUI app, a configuration issue within your Xcode project, or an underlying issue in the operating system, SwiftUI, in Xcode Previews, or on-device previews.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Boost
Gathering Required Information for Troubleshooting Xcode Previews or Swift Previews Issues
 
 
Q