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.