Tim,
The templates on Xcode 4 are totally different from and incompatible with those on Xcode 3.
Yes, I know the templates are completely different now, I will try to look into that over the weekend when I might be able to steal my sister's macbook running Lion... :-)
But I thought the XCode projects were still compatible... no?
Building fails with the following error message:
make
pic32-g++ -Wl,--gc-sections -mprocessor=32MX795F512L -Xlinker -T/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/chipKIT-MAX32-application-32MX795F512L.ld -Xlinker -o/Users/avenue33/Desktop/Xcode_chipKIT/main.elf -Xlinker -M -Xlinker -Map=/Users/avenue33/Desktop/Xcode_chipKIT/main.map
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-toavenue33/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/cpp-startup.o: In function `_main_entry':
(.text+0x10): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [/Users/avenue33/Desktop/Xcode_chipKIT/main.elf] Error 1
make: *** [build] Error 2
Command make failed with exit code 2
Wait, that is a completely different log, that can't be from the makefile in my XCode example
On top of that, Xcode doesn't recognise the symbols and doesn't jump to the definition.
I've had the same problem in XCode 3.2 The solution was to go to Project>Edit Project Settings>General and set "Project Format" to XCode3.2 compatible. Maybe try to set yours to XCode4 if this option still exists?
Otherwise, try rebuilding your codesense index... ?
Enclosed the culprit.
My template for chipKIT is broken and I don't know why 
I hope you'll be luckier than me 
I think I will download your complete project from github and try it this weekend, maybe new eyes see something new :-)
best,
tim.