Arduino on Xcode Project — Official Thread

Hi thanks for quick response.
1 yes I have worked with the arduino IDE and was able to compile everything and upload all the sketches to the board.
2 yes, the only think I have noticed is that, I'm using IDE 1.0.3, and inside my sketchbook folder (/Users/eduardo/Arduino) has the libraries folder, but low caps.
on the documentation was Libraries

3 the library does not matter, I pickup just for try the NewPing library (a standard library)

4 No I'm not, even with Xcode I'm not a newbie, I just dont know it very well...

The errors are these one:

In file included from main.cpp:51:
NewPing.ino:65: error: 'NewPing' does not name a type
NewPing.ino: In function 'void loop()':
NewPing.ino:73: error: 'sonar' was not declared in this scope
NewPing.ino:75: error: 'US_ROUNDTRIP_CM' was not declared in this scope
make: *** [Builds/main.o] Error 1