XCode4′s Data Modelling Tool window gets corrupted!!
Whilst working within XCode’s data modelling tool the window decided to blank out and go grey. For some reason it wouldn’t show any objects. (Grrr – Annoying!!!)
A few others seem to have had the same problem:
http://stackoverflow.com/questions/6433549/xcode4-core-data-model-editor-display-problem
I’m not sure what causes it (probably my attempt to re-jig that entity split seconds before the window went nuts!) but the grids and objects re-appear when you delete certain entities from the model (not useful but happens!!).
After an hour of searching and tinkering with the buggy window and finding no solution i decided to persevere, and complete the model using text-based half of the modeller instead – 10minutes and few entity/relationship additions laters, guess what decides to show up??
Yup – all my lovlies!!- aka my entities!
Update:
This solution lastest a while before i encountered new problems!!
XCode decided it would be nice to keep around the old errors and to show them even after i rectified the problems.
I’m pretty sure that the two problems are connected and are due to the multiple ways that you can now enter details into the modeller for the attributes/relationships and the live errors feature.
It seems that xcode is somehow is able to briefly lose track of what changes have been made (maybe if you start entering in one and complete in another – i’m just speculating!), and goes bonkers if you introduce too many errors.
I was able to overcome the problem with the older errors showing by copying the model file from the project, then deleting it.
The errors still showed as if the file was present within the project. I went to the manager (Cmd+shift+2) selected the project, then deleted the derived data via that top button! Then cleaned the project Cmd+Shift+K. Then closed and re-opened xcode. Worked for me twice now.. might help someone… one day!!
Despite all the bugs, somehow I still love using XCode4!!









Leave your response!