Skip to content
πŸ™ˆπŸ™‰πŸ™Š A Curious Animal
Go back

XCode4 and the mystery with Route-Me code sense

If you follow this blog you will know I prefer to write β€œlong” posts with nice content :) form time to time than write lots of short posts without much substance. For that I use Twitter :p

But always there an exception… and here is mine.

Recently I start coding with Objective-C programming for iPhone(iOS) andΒ usingΒ XCode4.

As a GIS lover I look for a native map library to make a native program and found the route-me project. Ok, that is nice. I download source code and follow the Embedding Guide to start coding. First time it goes fine. I make little sample without problem. Then I start a more serious project. I create a new project, follow the same steps to add the route-me dependencies but… ta-da !!! XCode doesn’t completes my code !!! Yes, if I wrote β€œRMMa” but I never get β€œRMMapView”. What the hell!!! How is it possible?Β I created a new project and attach route-me again, but… again the code completion didn’t work. This is a nightmare.

The I look for some help. On stackoverflow I found a very similar issue but it didn’t help my too much.

After a couple of very obfuscated days I found XCode4 indexes and stores code information in folder:

/Users/your_home_directoy/Library/Developer/Xcode/DerivedData

I think on delete that data and force XCode to recreate it. To do so you can go to the Organizer > Projects, select your project and remove the derived data. I do it many times clean and build my project but… ta-da !!! Nothing changes, code completing didn’t work.

Finally I opt to close XCode and remove the whole DerivedData directory. Then Β start XCode again, create a new project and attach route-me and… ta-da-da !!! oh my God, this time code completion works. Don’t ask my way. It simply works and that is enough for the moment.


Share this post:

Previous Post
SimplyWrite, a free web distraction writing tool based on IndexedDB
Next Post
Heatmaps in OpenLayers