Error with arduino Uno?

Make sure that you clean up everything. Not familiar with the Mac, but search for a directory called Arduino15 and delete that as well; on a windows system it's C:\Users\yourUserName\AppData\Local\Arduino15.