Error uploading codes to Digispark

Hi, I am a student, who is a newbie in this area. This is my first time using a Digispark Attiny85 USB-A in my final year project and it has some problems connecting with it.

I followed the instructions online of not plugging in the Digispark to my macOS Catalina 10.15.5 before uploaded the codes and wait for the notice. But when I upload it, it shows the message below:

fork/exec /Users/username/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
Error compiling for board Digispark (Default - 16.5mhz).

I also followed the instructions of the drastic action by pert of deleting all the files and folders under the Arduino15 folder except for preferences.txt. Unfortunately, it shows the message below:

fork/exec /bin/avr-g++: no such file or directory
Error compiling for board Arduino Yún.

Since all the installed boards are gone, I upload and verify the examples codes with Arduino Yún.

My Arduino is the latest version for Mac and the boards installed are all also the latest version.

Is there any solution for this? Really appreciate for your help. :slight_smile: