I had exactly the behavior that you described: it works on the simulator, but when it starts on the device, "Unable to load NIB in the bundle" is loaded, and the application remains shot in the launch snapshot.
In my case, the problem was in the MainWindow.xib file, which Xcode automatically created with English localization. I support English and Italian in my application and realized that I am missing a localized version of MainWindow.xib for the Italian language.
Since I did not need to localize this file (it became Xcode by default for its localization), I fixed the problem by simply deleting English localization, so the same file is used regardless of the localization. Another way to fix the problem is to add the missing localized version if you need it.
The application crashes on the device because my device is configured in Italian. Instead, the simulator was installed in English, and therefore the application works correctly. Just to check, I installed the simulator in Italian, and the application crashed, confirming the localization problem.
Gengis Feb 08 '12 at 22:50 2012-02-08 22:50
source share