I have a rather strange problem that I still cannot understand so far, and I want to document it here because I have not seen this issue discussed elsewhere.
I have an iPhone app that I was developing for Xcode3. This worked fine, and I made a proposal package that worked great on devices.
Then I upgraded to Xcode4, and the next time I made a proposal, my application crashed on launch. It goes without saying that it worked in a simulator and in devices connected to my development machine. The alarm logs were not very useful, they indicated a failure in main.m, in a standard UIApplication call. Of course, I never changed this file. After repeatedly digging and assembling, I found a problem.
Xcode thought that the file type of my * .xib files was text.xml instead of file.xib and therefore only copied these files into the application package, not compiled them. After that, the application crashed at startup, because the MainWindow.nib file could not be found.
Looking through my subversion checks, I found that the file types recorded in the project.pbxproj file in xcodeproj changed in the first check after updating Xcode4. I have no idea how and why this happened. I also do not see in the user interface how I would influence this setting, and I did not even open part of the changed xib. (To fix my problem, I changed the pbxproj file in a text editor).
So, does anyone have an idea of how and why this could happen?
source share