“无法读取符号...”导致设备上的 iPhone 应用程序崩溃(不适用于模拟器)
我希望任何人都可以帮助我解决以下问题:
问题
我在设备 (iPhone 3G) 上运行我的应用程序时遇到以下错误:
<块引用>警告:无法读取 /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so 的符号(未找到文件)。
它不显示 Default.png 等图像或我正在使用的其他占位符。我认为这与问题有关。
我尝试过的
- 清除构建、日志等。
- 删除文件夹 DeviceSupport 并使用我的 iPhone 恢复它。该解决方案已得到 44 人的认可,但对我来说不起作用。有关详细信息,请参阅检测到加载的库与 UUID 不匹配。
我正在使用(如果重要的话)
- 装有 iOS 4.2.1 的 iPhone 3G。 (8C148)
- Xcode 3.2.5 和 iOS 4.2 作为最新的 iOS)
- 另外,这是启动我的应用程序时的完整日志。它不会立即崩溃。仅当我进入特定视图时。
<块引用>GNU gdb 6.3.50-20050815(Apple 版本 gdb-1510)(2010 年 10 月 22 日星期五 04:12:10 UTC 2010)
版权所有 2004 年自由软件基金会,Inc.
GDB 是免费软件,受 GNU 通用公共许可证保护,您是
欢迎在特定条件下对其进行更改和/或分发其副本。
输入“显示复制”以查看条件。
GDB 绝对没有任何保证。输入“显示保修”以了解详细信息。
此 GDB 配置为“--host=i386-apple-darwin --target=arm-apple-darwin”.tty /dev/ttys000 正在将程序加载到调试器中...
程序已加载。
目标远程移动/tmp/.XcodeGDBRemote-7740-50
切换到remote-macosx协议
内存 0x1000 0x3fffffff 缓存
mem 0x40000000 0xffffffff 无
mem 0x00000000 0x0fff 无
运行
正在运行...
[切换到线程11523]
[切换到线程11523]
共享库应用加载规则全部
继续
警告:无法读取 /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so 的符号(未找到文件)。
提前致谢!
I hope anybody can help me with the following:
The problem
I'm getting the following error when running my app on a device (iPhone 3G):
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
It doesn't display images such as Default.png or other placeholders I'm using. I think that's related to the problem.
What I've tried
- Clearing builds, logs etc.
- Removing the folder DeviceSupport and restoring it with my iPhone. This solutions has been approved by 44 people but it did not work for me. See UUID mismatch detected with the loaded library for more information.
I'm using (in case it matters)
- an iPhone 3G with iOS 4.2.1. (8C148)
- Xcode 3.2.5 with iOS 4.2 as latest iOS)
- Also here's the complet log when starting my app. It doesn't crash right away. Only when I go to a specific view.
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-7740-50
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您提到您有 iOS 4.2 和 Xcode 3.2.5,但设备上有 4.2.1。您是否安装了4.2.1 SDK?您需要在两者上具有相同的版本(8C148)。
You mention that you have iOS 4.2 with Xcode 3.2.5, but you have 4.2.1 on the device. Do you have the 4.2.1 SDK installed? You need to have the same build (8C148) on both.
我不知道如何或为什么,但当我更正其他两个错误时,这个错误消失了。
模拟器可以处理这两种情况,而真实设备则不能。但自从我修复了这些错误后,我的问题中的错误也消失了。
I'm not sure how or why but this error disappeared when I corrected 2 other errors.
Simulator can handle both, a real device couldn't. But since I fixed these errors, the error in my question disappeared too..