工程中添加libresolv.dylib时,运行出错,
#0 0x00000000 in ?? ()
#1 0x91847ef3 in mig_get_reply_port ()
#2 0x9184170c in mach_ports_lookup ()
#3 0x018bb124 in _xpc_domain_init_local ()
#4 0x018b8eb1 in _libxpc_initializer ()
#5 0x8fe65203 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()
#6 0x8fe64d68 in __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE ()
#7 0x8fe622c8 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#8 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#9 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#10 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#11 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#12 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#13 0x8fe6225e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE ()
#14 0x8fe63268 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE ()
#15 0x8fe57694 in __dyld__ZN4dyld24initializeMainExecutableEv ()
#16 0x8fe5bf99 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#17 0x8fe552ef in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKclS2_ ()
#18 0x8fe55063 in __dyld__dyld_start ()
网上找了半天,也有人遇到类似问题,但解决方法好像都不靠谱,
http://stackoverflow.com/questions/7710163/ios-app-crashing-before-entering-main-with-xcode-4-2-ios-5
4.3 模拟器是好的,应该是模拟器的bug。