Arduino on Xcode Project — Official Thread

Please find the new releases of embedXcode

embedXcode • Dec 14, 2012 release 25 • New target for distribution
User Manual • Dec 14, 2012 release 19 • New target for distribution

The new Distribute target creates a specific folder Distribution which contains:
• all the headers and code files,
• documentation in PDF if available,
• and main sketch —.pde or .ino— in a folder with the appropriate name.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :wink:

I'm having issues getting my sketch to compile in Xcode for the Uno. It works fine in the Arduino IDE.

When I run a compile, I get the error:

/Applications/Arduino.app/Contents/Resources/Java/libraries/Esplora/Esplora.cpp:54: error: 'A11' was not declared in this scope
make: *** [Builds/libs/Esplora/Esplora.o] Error 1

I've attached the full error log.

I get this same error with a fresh embedxcode project too. Any ideas where I've gone wrong?

error.log (47.7 KB)

This is strange as your target is UNO.

I suggest you to edit the makefile on you project and add the names of the libraries to exclude:

# List the libraries to be excluded
# For example, WiFi may crash on Arduino 1.0.2
# For example, Esplora may crash on Arduino 1.0.3
# For example, Firmata may crash on Teensy 3.0
#
EXCLUDE_LIBS = Firmata WiFi WiFi/utility Esplora

It seems the Processing IDE is reaching its limits with the new Arduino products.

Thank you for reporting this issue. Please keep me informed of the result as I'm focused on the 1.5.x release

Excluding the Esplora lib worked. Thanks.

Thank you for the feed-back.

Please find the new release

embedXcode • Jan 08, 2013 • Fix for Esplora issue on Arduino 1.0.3

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :wink:

Running into another problem: I'm trying to build a project on the Due, and I get the following error:

---- Compile ----
1.1-CORE: .o < .c 	arduino_due_x	Builds/	WInterrupts.c
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -mmcu= -DF_CPU= -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/Arduino -I/Applications/Arduino.app/Contents/Resources/Java/libraries/LiquidCrystal -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/utility -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Ethernet -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Ethernet/utility -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Servo -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SoftwareSerial -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Stepper -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility  -g -Os -w -Wall -ffunction-sections -fdata-sections -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/ -DARDUINO=150  /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/Arduino/WInterrupts.c -o Builds/WInterrupts.o
cc1: error: missing argument to "-mmcu="
make: *** [Builds/WInterrupts.o] Error 1

This is with Arduino 1.5.1 and the latest embedxcode. I can compile and upload form Arduino, but even a brand new project in embedxcode fails to compile. Full log is attached

build.log (15.6 KB)

Problem is, I don't own an Arduino Due, so I can't proceed with the required tests.

I'll see what I can do.

Attached file displays

Error 503 Service Unavailable
Service Unavailable
Guru Meditation:
XID: 1076264504
Varnish cache server

Please find an updated version of embedXcode with successful compilation for Arduino Due.

Please let me know how the upload works so I could improve it.

Thank you!

Please find a new release of embedXcode

embedXcode • Jan 15, 2013 release 26 • Support for Arduino Due — Build, link and upload tested

Arduino Due is now fully supported thanks to the help of a user who proceeded with the build, link and upload tests.

Many thanks to Mike!

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :wink:

Hi Avenue33,

thanks for this development, I still have problems creating index and by trying to understand found that in the step1.mk file you also exclude OneWire :

# List of sub-paths to be excluded
#
EXCLUDE_NAMES  = Example example Examples examples Archive archive Archives archives Documentation documentation Reference reference
EXCLUDE_NAMES += ArduinoTestSuite OneWire
EXCLUDE_NAMES += $(EXCLUDE_LIBS)
EXCLUDE_LIST   = $(addprefix %,$(EXCLUDE_NAMES))

Any special reason for this ?
Thanks !

Yes, the OneWire library used to be incompatible with the chipKIT MPIDE IDE.

Just remove OneWire from step1.mk file.

New place for excluding libraries is the makefile file:

# List the libraries to be excluded
# For example, WiFi may crash on Arduino 1.0.2
# For example, Esplora may crash on Arduino 1.0.3
# For example, Firmata may crash on Teensy 3.0
# For example, OneWire may crash on MPIDE 0023
#
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire

The template has been updated accordingly.

Please find a new release of embedXcode

embedXcode • Feb 02, 2013 release 27 • Support for Teensyduino release 1.12

Teensyduino for Teensy 3.0 is no longer in beta; the plug-in for Arduino has reached release 1.12 and is based on gcc 4.7.2.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :wink:

Hello people, I'm new in this forum and also English isn't my first language so forgive me if I have some mistakes.
I'm having problems with Xcode and user libraries, I follow every process of the manual( obviously I forgot something) but I couldn't make it build all.
It's a small code that only uses the IRremote library just that.
I was able to build all without the library, and then I added the files in the a sketchbook tree node on Xcode also in the index for code sensing(witch is working) but when I build all, Xcode complains aboud not finding the ir methods.
I notice also something strange, in the arduino IDE we have the path library, but in embedxcode you have used Libraries, since Mac OS is caps oriented this has some issue, or I'm wrong?
Thanks in advance
Eduardo

¡Bienvenido!

Where the IR library is on the hard disk? The tree on the left pane is part link, part real files.

  • Have you run the Arduino IDE once and declared the SketchBook folder? —see §1.2. Install the IDEs of the Boards
  • Is the IR library inside the library folder inside the sketchbook folder? —see §3.3. Add User's Libraries
  • Is the IR library a user library —you've wrote it— or a standard library —supplied with Arduino? —see §5.2 Manage the Libraries for Compilation

If you new to the Arduino world, I'd recommend to go step-by-step and start with the standard Arduino IDE before switching to Xcode, which is a very rich IDE.

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

Hi to all again,

I did a search in all project, with Libraries and change everything to libraries.

Well this is sort a desperate measure, but it worked, I don't know, how do you are able to compile your libs like this, but it worked.

Everything is build and ok...

If anyone has an idea, I like to hear....

Hi,

I think this is a problem, or by my IDE in installation or the embedeXcode. I had mapped all the files that are required to everything build ok. Plus, I made a Duemilanove configuration.

If you guys want the codes, please ask.

eduardorcosta:
Hi to all again,

I did a search in all project, with Libraries and change everything to libraries.

Well this is sort a desperate measure, but it worked, I don't know, how do you are able to compile your libs like this, but it worked.

Everything is build and ok...

If anyone has an idea, I like to hear....

Mac OS X offers two kinds of file format: case-sensitive and not case-sensitive. What's your configuration?

On my MacBook, the folder for the user libraries is called ~/Documents/Projets/Arduino/Libraries , hence the Libraries with capital L.

Mine is case-sensitive,

Interesting in your configuration you have a library directory with a capital L, in mine (the default from arduino IDE) is l.

Is this a configuration on the IDE? Maybe integrate this is a good idea.

Thanks

What are the advantages of having a case-sensitive file system?