Xcode 16.0 beta 6: Preview: Permission denied

I'm having two users on my MBP and one user has an issue with Xcode Preview. - I thought this was a known issue and solve in an older beta version, but I still got the issue

  • Xcode 16.0. beta 6
  • Cannot preview in this file
  • XOJITError: Could not create code file directory for session: Permission denied
  • multiple (admin) users, but one user has the issue, the other user not

Hi,

Sorry to hear you are having problems getting previews working for one of your user accounts. The best next step will be to file a feedback with diagnostics so we can take a look.

Steps to generate helpful diagnostics:

  1. Download and install the logging profile on all devices involved. Instructions and profiles are available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift
  2. Reproduce the issue
  3. Click the "Diagnostics" button in the error banner in Previews' Canvas area
  4. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  5. Attach (or make from the folder) the resulting zip file to the bug report (will be named something like previews-diagnostics-0123456789.zip)
  6. Generate the sysdiagnose(s) and attach those too

Thx, done, send feedback.

Xcode 16.0 beta 6: Preview: Permission denied
 
 
Q