Fixing Access Denied error on MacOS

In MacOS beta 27 (Golden Gate), if experiencing the error AccessDenied; example: error: unable to load "" AccessDenied.

  1. Simply reset permissions for the ~/.cache/zig using the chown command sudo chown -R $USER:staff ~/.cache/zig
  2. Delete it using sudo rm -r ~/.cache/zig

Finally run zig build and it should compile. At least that is what worked for me