应用程序适用于 ios 4.3 模拟器,但不适用于 ios 5 模拟器。有什么想法吗?
我的应用程序在 ios 4.3 模拟器中运行良好,但在 ios 5 模拟器中运行不佳。我的 iPhone 上有 ios 5,我的应用程序可以在 iPhone 上运行。
该应用程序在所有这三种环境中都可以正常编译。
在 ios5 模拟器中,我得到以下神秘的线程崩溃报告。
mig_get_reply_port 似乎是带有
0x935d5ef3 <+0012>;测试%eax,%eax
“EXC_BAD_ACCESS”
这是配置问题吗?
- #0 0x00000000 in <????> ()
#1 0x935d5ef3 in mig_get_reply_port ()
#2 0x935cf70c in mach_ports_lookup ()
#3 0x01d4b124 in _xpc_domain_init_local ()
#4 0x01d48eb1 in _libxpc_initializer ()
#5 0x8feaa203 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE
()
#6 0x8fea9d68 in __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE
()
#7 0x8fea72c8 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#8 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#9 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#10 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#11 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#12 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#13 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#14 0x8fea8268 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE
()
#15 0x8fe9c694 in __dyld__ZN4dyld24initializeMainExecutableEv ()
#16 0x8fea0f99 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#17 0x8fe9a2ef in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKclS2_ ()
#18 0x8fe9a063 in __dyld__dyld_start ()
谢谢!
My app runs fine in the ios 4.3 simulator, but not the ios 5 simulator. I have ios 5 on my iPhone, and my app DOES work on the iPhone.
The app compiles fine in all of these three environments.
In the ios5 simulator, I get the following cryptic thread crash reports.
mig_get_reply_port appears to be the method call with a
0x935d5ef3 <+0012> test %eax,%eax
"EXC_BAD_ACCESS"
Is this a configuration issue?
- #0 0x00000000 in <????> ()
#1 0x935d5ef3 in mig_get_reply_port ()
#2 0x935cf70c in mach_ports_lookup ()
#3 0x01d4b124 in _xpc_domain_init_local ()
#4 0x01d48eb1 in _libxpc_initializer ()
#5 0x8feaa203 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE
()
#6 0x8fea9d68 in __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE
()
#7 0x8fea72c8 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#8 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#9 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#10 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#11 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#12 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#13 0x8fea725e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#14 0x8fea8268 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE
()
#15 0x8fe9c694 in __dyld__ZN4dyld24initializeMainExecutableEv ()
#16 0x8fea0f99 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#17 0x8fe9a2ef in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKclS2_ ()
#18 0x8fe9a063 in __dyld__dyld_start ()
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这与之前提出的问题重复。查看:
iOS 应用程序在进入之前崩溃main() 与 Xcode 4.2 & iOS 5
应用程序在模拟器 5.0 之前崩溃到达 main.m
另外,这似乎表明这最终是模拟器中的一个错误:
http://www.openradar.me/10464051
I believe this is a duplicate of questions asked earlier. Check out:
iOS App crashing before entering main() with Xcode 4.2 & iOS 5
Application crashes on simulator 5.0 before reaching main.m
Also, this seems to indicate that this is ultimately a bug in the simulator:
http://www.openradar.me/10464051
将 libxml2 替换为 libxml2.2.7.3 在各种解决方案中都有效! :)
Replacing libxml2 to libxml2.2.7.3 worked amongst the various solutions ! :)