I keep running into the following issue when trying to run preview for my application in Xcode.
FailedToLaunchAppError: Failed to launch app.a
/Users/me/Library/Developer/Xcode/DerivedData/a-aloudjuytoewlldqjfxshbjydjeh/Build/Products/Debug/a.app
==================================
| [Remote] JITError
|
| ==================================
|
| | [Remote] XOJITError
| |
| | XOJITError: Could not create code file directory for session: Permission denied`
I found the solution to my problem. I went to signing and capabilities and removed all capabilities. I went back to the preview and it was working fine again. Im not sure what setting I changed to break the preview in the first place. I've looked back at my older version and I'm not seeing anything strange but it is working again.
Hope this helps x