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

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

问题描述

我正在尝试在我的 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 设备上捆绑加载笔尖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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