swiftUİ preview update error

the problem I have been having for a few days is that when I want to work with swifui, I open a new swiftui file and preview does not occur, I read it from chatgpt deepsek and many forum sites, is it a systemic failure, please help me, I am having trouble previewing.

Hi, Sorry to hear you are having problems getting previews working.

Best next step will be to file a feedback with diagnostics and a sample project. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.

Then when you get an error in Xcode Previews, an error banner appears in the canvas

  • Click the "Diagnostics" button in that banner
  • In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  • Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)
swiftUİ preview update error
 
 
Q