Arduino Uno with Xcode on the Mac

Hi all,

I'd like to be able to use Xcode on MacOS to develop for my Arduino Uno. I searched around but couldn't find any instructions which looked current (and nobody on Stackoverflow could help either) so I had a go myself with the outdated resources I found, this one seeming the most up-to-date.

As far as I can work out, the Uno has a different USB/serial interface, so I changed the makefile in the previous link to read:

PORT = /dev/tty.usbmodem*

and I also set

AVRDUDE_PROGRAMMER = stk500

(correct according to Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt, I can't remember where I found the link suggesting that.)

It seems to all compile fine, but when it goes to upload, I get endless:

avrdude: stk500_2_ReceiveMessage(): timeout

... messages and the tx/rx lights on the board don't even flash. Can anybody help?

Cheers, Robert.