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 设备上捆绑加载笔尖


基础教程推荐
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- 固定小数的Android Money Input 2022-01-01
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01