将应用程序部署到 iPad 时出现奇怪的控制台消息
昨天我的应用程序正常部署(调试版本)到 iPad。但今天我升级到了 iOS 4.2.1(即当前版本),现在它在控制台上吐出很多废话,并挂起一段不确定的时间(有时是几分钟或更长时间),然后才最终运行该应用程序设备。
谁能解释一下这种行为?我该如何摆脱它?
PS看看最后一行:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
到底发生了什么?我的应用程序或生活中的其他任何地方都与日语无关。我的硬盘上有几部很棒的吉卜力电影,但仅此而已。
[Session started at 2011-02-14 18:30:27 +0700.]
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".Loading program into debugger…
tty /dev/ttys002
sharedlibrary apply-load-rules all
Program loaded.
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file:
target remote-mobile /tmp/.XcodeGDBRemote-918-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]
continue
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file:
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
unable to load symbol file: unable to load symbol file: warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
yesterday my app was deploying (debug build) to the iPad fine. but today I upgraded to iOS 4.2.1 (ie the current one), and now it spits a lot of nonsense out on the console, and hangs for an indeterminate time ( sometimes a couple of minutes or more ) before finally running the app on the device.
can anyone shed some light on this Behaviour? How do I get rid of it?
PS look at the last line:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
what on earth is going on? I don't have anything to do with anything Japanese in my app, or anywhere else in my life. I have a couple of great Ghibli movies on my hard drive but that is it.
[Session started at 2011-02-14 18:30:27 +0700.]
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".Loading program into debugger…
tty /dev/ttys002
sharedlibrary apply-load-rules all
Program loaded.
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file:
target remote-mobile /tmp/.XcodeGDBRemote-918-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]
continue
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file:
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
unable to load symbol file: unable to load symbol file: warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以手动删除相应的符号目录。然后插入您的设备,打开管理器,并告诉 Xcode 加载该设备的符号。
You can manually delete the corresponding symbols directory. Then plug in your device, open the Organizer, and tell Xcode to load the symbols for that device.
重新启动一切。运行 Xcode 然后连接您的设备。等到它完成复制符号后再执行任何操作。应该这样做!
Reboot everything. Run Xcode then connect your device. Wait until it finishes copying symbols before doing anything. That should do it!
重新安装SDK修复了它。
注意,我还通过按住 yonks 的两个按钮将我的设备设置为恢复模式,然后让 iTunes 在其上安装最新的 iOS
编辑:只是与 IRC 上遇到相同问题的其他人交谈 - 他通过删除他的/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 中的符号文件夹...可能比重新安装所有内容更聪明。
^^ 即菲利普上面所说的!
Reinstalling the SDK fixed it.
NB I also set my device in to restore mode by holding down both buttons for yonks, and letting iTunes put the latest iOS on it
EDIT: Just talking with someone else on IRC who had the same problem -- he sorted it out by deleting his symbols folder from /Developer/Platforms/iPhoneOS.platform/DeviceSupport/ ... probably a bit smarter than reinstalling everything.
^^ ie exactly what Philip said above!