In MacOS beta 27 (Golden Gate), if experiencing the error AccessDenied; example: error: unable to load "" AccessDenied.
- Simply reset permissions for the ~/.cache/zig using the chown command
sudo chown -R $USER:staff ~/.cache/zig - Delete it using
sudo rm -r ~/.cache/zig
Finally run zig build and it should compile. At least that is what worked for me