Recently I was attempting to upload some code on my Arduino and got this error:
****Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Uno"
fork/exec /Users/Gu/Desktop/Every single yhing/coding stuff/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++: bad CPU type in executable
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.****
I quickly learned that is was due to the macOS update Catalina no longer supporting 32-bit applications and the avr-g++ keychain tool is run through a 32-bit process.
If anyone has any solution to fix this problem please assist me.