Having an issue running an Arduino sketch
I don't know how you came up with that location as the right place to put libraries. It is wrong. Oh so very wrong.

Libraries go in ~/Documents/Arduino/libraries as stated in the first hit for "arduino macos libraries" on Google.