Arduino on Xcode Project — Official Thread

Trying to get things going. I am running...

  • Lion 10.7.2
  • Xcode 4.2.1
  • Arduino Version 0022
  • timknapen-Arduino-With-XCode-08ce0ae
  • Duemilanove 168 (also have a Mega and a few clones)

Sample project builds and upload fine. I started a project that uses the Wire library and get...

bin/core.a(Wire.o): In function TwoWire::send(unsigned char)': Wire.cpp:(.text._ZN7TwoWire4sendEh+0x3c): undefined reference to twi_transmit'

plus a couple more similar errors. It appears twi.h can't be found. I've tried changing #includes from angle brackets to quotes (and visa versa), moving the twi.c and twi.h out of the "utility" folder and into the same folder as wire.h and wire.cpp, changing stuff in the compat folder (#include "util/twi.h" to #include "utility/twi.h", etc, etc, etc.

Boy there are a bunch of copies of the include files inside the Arduino app. One thing I noticed about the "starter folder" from GitHIb: There references to "arduino" and "libraries" in the project tree were bad (red) so I deleted them and re-added them from the Arduino app. Was this the right thing to do?

Chasing my tail... Any ideas?