XCode 13 beta 2 SwiftUI previews from swift package broken

XCode 13 beta 2 SwiftUI previews from swift package broken

Hi,

Sorry to hear you are having problems getting previews working. This is a known issue that we intend to fix. If you are still seeing this with next release/seed, file a feedback. We will then need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.

  1. When you get an error in Xcode Previews, an error banner appears in the canvas
  2. Click the "Diagnostics" button in that banner
  3. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  4. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)

Thanks! This is while working a swift package. I'm unable to attach the compressed directory

I see this in the summary: Failed to find any buildables using the normal path

I'm currently on 13.2.1 release Xcode version and getting needs -Onone Swift optimization level to use previews. On many SwifUI views with previews canvas doesn't even open. This makes my work on any SwiftUI project right now a big pain. :(

I am also experiencing this on non beta version. 13.4.1 (13F100). Any Solutions?

XCode 13 beta 2 SwiftUI previews from swift package broken
 
 
Q