When I open a new project in Xcode and run the preview the preview fails and I get the message “expected ‘{‘ in struct”. This is before I enter any new code
Xcode preview bug question
Hi,
Sorry to hear you are having problems getting previews working. Best next step will be to file a feedback with diagnostics. 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)
Great if you can attach your project and source code too, so we can reproduce using the same set up as you.