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/ Operation not permitted
/Applications/ line 6: /Applications/ Permission denied
/Applications/ line 6: exec: /Applications/ 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).

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.

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

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.

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).