MacOS – App cannot create folder when needed, needs permissions

macosmojavepermission

I'm trying to use Unity to export the app I'm creating. It gets about halfway through the process before showing the message:

"Creating directory. Creating directory Library/ScriptAssemblies failed. Please ensure there is enough disk space and you have permissions setup correctly."

There's 60GB of free space. I don't understand permissions well enough to know what to do here. I could really use some help, I only know Windows.

Best Answer

This problem could be solved by deleting the "library" which is generated by Unity. Unity directory is as following:

Unity > - Assets - Library <- Delete the directory, and reopen Unity - Log - ProjectSettings - Temp

On the other hand, you can see information about permissions and their errors in the following Apple website: https://support.apple.com/en-au/HT203538