简体   繁体   中英

NIB Loads On Simulator But Not On Device

Simply, my application's view loads in the simulator, all views intact.

When pushed onto the iPhone, the views fail to load. If it makes a difference, my iPhone 4 is jailbroken, but other applications I've created load with no problem on the phone.

What do you think?

If something is working on the simulator but not on the device a good starting point for debugging is the filename. The default filesystem on Mac OS is not case-sensitive, but the filesystem on the device is case-sensitive.

So please check if the filename used in your code matches exactly the actual filename.

What worked for me was what you recommended; delete the app from device (in my case, iPad2), and reboot. Restart Xcode, and now I'm working.

I had a very similar issue to you; except, a version of my XIB was loading which was quite old. Device is properly provisioned, localization is set to what I expected, and yet still an old copy of the XIB was loading. I thought it was my XIB file too... and hated to have to recreate the XIB.

I don't know, I guess it was just holding onto something.

My iPhone4 and iPhone3G had no issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM