无法在iPhone设备上加载nib in bundle [英] Could not load nib in bundle on iPhone device

查看:106
本文介绍了无法在iPhone设备上加载nib in bundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试测试我正在iPhone上开发的应用。为此,我在Xcode上将目标从Simulator更改为Device。应用程序已正确上载到设备并且可以正常运行。显示主视图,但如果我尝试打开辅助视图,应用程序崩溃。

I'm trying to test an app I'm developing on my iPhone. To do that I changed the target from Simulator to Device on Xcode. The application is correctly uploaded to the device and it works. The main view is shown but if I try to open a secondary view, the application crashes.

在iPhone日志上(我安装了iPhone配置实用程序以查看控制台[是从iPhone查看日志的唯一方法吗?])我可以看到此错误:

On the iPhone log (I installed the iPhone configuration utility to see the console [is the only way to see the log from iPhone?]) I can see this error:

Could not load NIB in bundle

但是,在模拟器上它工作正常。怎么了?有什么想法吗?

But, on the simulator it works fine. What's wrong? Any ideas?

推荐答案

我发现有时设备区分大小写且模拟器不是。

I've found that sometimes the device is case sensitive and the simulator is not.

你的xib的文件名是什么?

What's the filename of your xib?

尝试从模拟器卸载应用程序并再次安装 - 模拟器可能有一个旧文件遗留在以前的应用程序运行中 - 您是否在开发过程中重命名/移动了xib?

Try uninstalling the app from the simulator and installing it again - the simulator might have an old file left over from a previous run of the app - have you renamed / moved the xib at all during development?

这篇关于无法在iPhone设备上加载nib in bundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆