Problem with upload to Arduino Uno

Hi, I just got my new Arduino Uno board and have selected board and port but when I try to upload the following message appears:

Sketch uses 1,014 bytes (3%) of program storage space. Maximum is 32,256 bytes.
Global variables use 14 bytes (0%) of dynamic memory, leaving 2,034 bytes for local variables. Maximum is 2,048 bytes.
chmod: Unable to change file mode on /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Operation not permitted
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Permission denied
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: exec: /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: cannot execute: Undefined error: 0

How do I fix this?

Which version of the Arduino IDE are you using?

I am using Arduino 1.6.5

Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).
    a

I followed your instruction but it resulted in the same error message, however, there is no orange bar nor button.
I have included a screenshot of the window if that helps.
Thanks.

Jess-gibbo’s picture:
Screen Shot 2018-05-24 at 1.48.15 PM.png

Jess-gibbo:
I followed your instruction but it resulted in the same error message,

Same error message, but this time it also shows the avrdude command that generated the error, which is what I was looking to get. Unfortunately I don’t get any clues as to the problem from that but maybe it will be helpful to someone else here on the forum. I don’t have any experience with macOS.

Jess-gibbo:
however, there is no orange bar nor button.

That is strange. Normally when there is an error the teal bar that says “Uploading…” will turn to an orange bar with the button to copy the error messages. You can always just copy the full contents of the text from the black console windows at the bottom of the Arduino IDE window. The only difference between that and the button is the button adds a little more information (OS, IDE version, board selected).