Could not load nib in bundle on iPhone device(无法在 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 设备上捆绑加载笔尖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法在 iPhone 设备上捆绑加载笔尖


基础教程推荐
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01