3305 Views 6 Replies Latest reply: Aug 31, 2011 9:17 AM by Poringkiller
Currently Being ModeratedOct 19, 2010 7:03 AM (in response to m_userName)A few suggestions:
1) Ctrl-click on the project name at the root of the Groups & Files tree on the left side of your project window, and select "Reveal in Finder". In the Finder window, locate the Build folder and delete it;
2) The Groups & Files tree should have a "NIB Files" group near the bottom. Expand that group to see if TableViewCell.xib is listed;
3) Do a search for TableViewCell.xib in every volumn in your environment (Finder->File->Find...).
\- RayiMac, Mac OS X (10.5.8)
Currently Being ModeratedOct 19, 2010 7:53 AM (in response to RayNewbie)I've tried those steps, and the xib file definitely isn't there (I can do a search for the xib file in the entire project and it isn't there), and deleting the build file didn't work.
What is confusing, is that in the view controller in question, it loads the xib file fine. However, if I put exactly the same code in a different view controller within the same project, I get an NSUnknownKeyException.MacBook Pro, iOS 4
Currently Being ModeratedOct 19, 2010 9:36 AM (in response to m_userName)
I've tried those steps, and the xib file definitely isn't there (I can do a search for the xib file in the entire project and it isn't there), and deleting the build file didn't work.
Instead of only searching the project, I would recommend searching your hard disk as well as any other accessible volumes. Though unlikely, it's possible the xib is someplace the project knows about. For example, when adding an existing file to a project, if you don't check "Copy items ... (if needed)", the project will access the file wherever it lives. Of course such a link should be broken when the file is deleted from the project, but if not... Stranger things have happened with Xcode.
I guess, if you really want to work on this, you might also try importing all your source files into a new project. That should rule out the contents of the .xcodeproj package. Wish I could help more. but I'm outta ideas for now.
\- RayiMac, Mac OS X (10.5.8)
Currently Being ModeratedOct 21, 2010 2:35 AM (in response to m_userName)I'd checked that the file was nowhere to be found on the harddrive, but was definitely still being loaded by the code, even though I had done a full clean and rebuild of the project.
Just to test, I decided to replace the deleted nib file name with a bogus one, and made sure it threw an exception. In the exception, it mentions the directory of of the iphone app simulator that it cannot find the nib file in Library/Application Support/iPhone Simulator/4.1/Applications/...
Therefore, I deleted this directory, and recompiled, and the project now throws an exception for the deleted nib file, as expected. I guess the iphone simulator must have been caching the value of the old nib file and not updating it when that file was deleted.MacBook Pro, iOS 4