Arduino on Xcode Project — Official Thread

avenue33:
That's strange, AVRDUDE_PORT is defined in Avrdude.mk by:

AVRDUDE_PORT      = $(firstword $(wildcard $(BOARD_PORT)))

with BOARD_PORT defined in Arduino UNO.xconfig by

BOARD_PORT = /dev/tty.usbmodem*

or in Step1.mk otherwise by

ifndef BOARD_PORT

BOARD_PORT = /dev/tty.usb*
endif


Arduino UNO.xconfig has priority over Step1.mk.

Board_port is pulled from the config file fine, but "$(firstword $(wildcard $(BOARD_PORT)))" seems to return nothing, making AVRDUDE_PORT blank. Without $(firstword $(wildcard it works fine.