I strongly recommend you to refer to the book Xcode 4 Unleashed by Fritz F. Anderson
Now that Xcode compiles without errors I've started adding my user libraries back to my \library folder. Most of the libraries compile fine, but not all. The first one I'm trying to tackle is DallasTemperature.h. Arduino.h is already included, so that shouldn't be the problem. The library works fine in Arduino IDE 1.0.4, I compiled a couple of the example sketches without errors in the Arduino IDE.
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire
EXCLUDE_LIBS = Firmata WiFi Esplora
I'm trying to follow step 3.2.2 (Declare Sources for Code Sense) in the manual, but the screenshots are really blurry and I can't figure out what to do. I attached a screen shot of what I think is the target index and build phases pane. But I don't see an add items button There is an add Target, but that doesn't seem to be the same. I Googled around for help, but didn't find anything.
Each release of Xcode changes the way code-sense works.I suggest to get rid of the whole core library for code-sense block and keep only Code: [Select]#include "Arduino.h"Also, launch one compilation.
The procedure you've followed is basically this described on section 4.6 Re-Index the Keywords for Code-Sense. Strange enough, code-sense, auto-completion and arguments list are displayed usually without problem in my laptop. Now, it isn't a 100% hit and Xcode dedicated forums recommend the procedure you've followed and I've mentioned in the user manual. Unfortunately, as code-sense implementation changes with every Xcode release and as Apple is more than secretive about the customisation of Xcode, I'm sorry I can't be of much help.
I think code-sense is working but the colors are different from your manual. Or maybe it's partially working.
Can you give me links to the xcode forums you like to go to?
I have another smaller issue, not a show stopper. When I create a new project, xcode does no do a reindex on it's own. But when I go do my first build and where embedxcode does it's thing, the Build is cancelled because the index starts. I did notice the the embedxcode changes all seem to be there, so that's good. Once the indexing is done, if I start another Build, it finishes okay. Is there a way for me to make xcode do the index so it doesn't just start it on it's own and cancel my first Build. I guess I could follow the code-sense same re-indexing procedure, but I'm wondering if there is something more direct.
I tried Run > Index, but that didn't work, I guess that's for something else.
Index is a proxy target solely used for code-sense. Do not launch it.
On embedXcode releases up to 40, the preparation of the project is done the first time compilation is asked for, but actually before the compilation really starts. As Xcode tries to do two thinks at the same time, it realises the project has been changed by the preparation and thus stops the compilation.On embedXcode releases 41 and on, the preparation of the project is still done the first time compilation is asked for, but this time after compilation is completed, avoiding conflicts of multi-tasking.
---- Size ----Binary sketch size: 654 bytes (of a 16384 byte maximum)Estimated SRAM used: 8 bytes (of a 512 byte maximum)==== Make done ====
==== Build done ==== /bin/sh: Utilities/embedXcode_prepare: Permission deniedShowing first 200 notices onlyCommand /Applications/Xcode.app/Contents/Developer/usr/bin/make emitted errors but did not return a nonzero exit code to indicate failure
Strange, I haven't modified the embedXcode_prepare utility, built as 10.7 compatible. Please try with release 42 just uploaded.