Wednesday, March 28, 2012

Xcode's interesting behaviour

After renaming a XIB in Xcode, the application would load the old XIB file (even if it did not exist anymore). One would assume that trying to load an nonexistent file would throw an error about that particular file. Well, with Xcode, because it has some weird caching system, the error that crashed the app refereed to one of the missing objects that were deleted before renaming the file.

So... if anyone had this problem, triple check if you load the right XIB name in your code because if there ever existed a file named like that and got deleted, the app will load it from cached information.

No comments:

Post a Comment