0x003c23dc <+0012> call 0x3c23e1 <__springboard_unimplemented+17>
在4.3上,我也在objc_msgSend上立即得到一个EXC_BAD_ACCESS错误,而且据我所知,它在应用程序启动之前就已经发生了.
我试过清理目标无济于事,NSZombIEEnabled似乎没有帮助.
该应用程序在我的iPhone上完美运行.
编辑:卸载并重新安装Xcode,没有帮助.一个空白的新项目运行良好.设置一些断点之后,看起来它在main.m中的这行上失败了(这不是很有帮助):
int retVal = UIApplicationMain(argc,argv,nil,nil);
编辑:根据要求,这里的线程适用所有bt满:
对于4.2模拟器,重复约5800次,每次使用不同的内存地址:
#0 0x003c23dc in __springboard_unimplemented ()No symbol table info available.
接下来是这样的东西:
#5817 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5818 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5819 0x90bdbc0c in abort ()No symbol table info available.#5820 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5821 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5822 0x90bdbc0c in abort ()No symbol table info available.#5823 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5824 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5825 0x90bdbc0c in abort ()No symbol table info available.#5826 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5827 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5828 0x90bdbc0c in abort ()No symbol table info available.#5829 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5830 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5831 0x90bdbc0c in abort ()No symbol table info available.#5832 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5833 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5834 0x90bdbc0c in abort ()No symbol table info available.#5835 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5836 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5837 0x90bdbc0c in abort ()No symbol table info available.#5838 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5839 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5840 0x90bdbc0c in abort ()No symbol table info available.#5841 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5842 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5843 0x90bdbc0c in abort ()No symbol table info available.#5844 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5845 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5846 0x90bdbc0c in abort ()No symbol table info available.#5847 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5848 0x003ca9c1 in getrlimit$UNIX2003 ()No symbol table info available.#5849 0x90bf564a in sysconf ()No symbol table info available.#5850 0x90be62a0 in __sinit ()No symbol table info available.#5851 0x90bdbdee in __swsetup ()No symbol table info available.#5852 0x90bdc1fa in vfprintf_l ()No symbol table info available.#5853 0x90be620e in fprintf ()No symbol table info available.#5854 0x003c2543 in __springboard_unimplemented ()No symbol table info available.#5855 0x003cacd1 in kill$UNIX2003 ()No symbol table info available.#5856 0x90bdbc0c in abort ()No symbol table info available.#5857 0x003c2548 in __springboard_unimplemented ()No symbol table info available.#5858 0x003ca9c1 in getrlimit$UNIX2003 ()No symbol table info available.#5859 0x90bf564a in sysconf ()No symbol table info available.#5860 0x90be62a0 in __sinit ()No symbol table info available.#5861 0x90bdbdee in __swsetup ()No symbol table info available.#5862 0x90bdc1fa in vfprintf_l ()No symbol table info available.#5863 0x90be620e in fprintf ()No symbol table info available.#5864 0x003c2543 in __springboard_unimplemented ()No symbol table info available.#5865 0x003ca9c1 in getrlimit$UNIX2003 ()No symbol table info available.#5866 0x90bf564a in sysconf ()No symbol table info available.#5867 0x90be62a0 in __sinit ()No symbol table info available.#5868 0x90bdbdee in __swsetup ()No symbol table info available.#5869 0x90bdc1fa in vfprintf_l ()No symbol table info available.#5870 0x90be620e in fprintf ()No symbol table info available.#5871 0x003c2543 in __springboard_unimplemented ()No symbol table info available.#5872 0x003cbbe9 in mmap$UNIX2003 ()No symbol table info available.#5873 0x90c01319 in allocate_pages ()No symbol table info available.#5874 0x90c08780 in create_scalable_zone ()No symbol table info available.#5875 0x90c3e48d in _malloc_initialize ()No symbol table info available.#5876 0x90c3e86b in malloc ()No symbol table info available.#5877 0x99aa8a62 in get_or_create_key_element ()No symbol table info available.#5878 0x99aa8c6b in _keymgr_get_and_lock_processwIDe_ptr_2 ()No symbol table info available.#5879 0x99aa8e4a in __keymgr_initializer ()No symbol table info available.#5880 0x9bed97b8 in libSystem_initializer ()No symbol table info available.#5881 0x8fe9415b in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11linkContextE ()No symbol table info available.#5882 0x8fe93cc0 in __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11linkContextE ()No symbol table info available.#5883 0x8fe91220 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11linkContextEjRNS_21InitializerTimingListE ()No symbol table info available.#5884 0x8fe911b6 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11linkContextEjRNS_21InitializerTimingListE ()No symbol table info available.#5885 0x8fe911b6 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11linkContextEjRNS_21InitializerTimingListE ()No symbol table info available.#5886 0x8fe921c0 in __dyld__ZN11ImageLoader15runInitializersERKNS_11linkContextERNS_21InitializerTimingListE ()No symbol table info available.#5887 0x8fe86656 in __dyld__ZN4dyld24initializeMainExecutableEv ()No symbol table info available.#5888 0x8fe8aef2 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()No symbol table info available.#5889 0x8fe842ef in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKclS2_ ()No symbol table info available.#5890 0x8fe84063 in __dyld__dyld_start ()No symbol table info available.
完整输出:https://gist.github.com/b14502e1c6393d655653
对于4.3模拟器,我得到这个:
Thread 4 (process 1938):#0 0x905a6c22 in mach_msg_trap ()No symbol table info available.#1 0x905a61f6 in mach_msg ()No symbol table info available.#2 0x01bcad86 in __CFRunLoopServiceMachPort ()No symbol table info available.#3 0x01b27e74 in __CFRunLoopRun ()No symbol table info available.#4 0x01b27840 in CFRunLoopRunspecific ()No symbol table info available.#5 0x01b27761 in CFRunLoopRunInMode ()No symbol table info available.#6 0x02db5903 in RunWebThread ()No symbol table info available.#7 0x90be8ed9 in _pthread_start ()No symbol table info available.#8 0x90bec6de in thread_start ()No symbol table info available.Thread 3 (process 1938):#0 0x905a990a in kevent ()No symbol table info available.#1 0x03f28f36 in _dispatch_mgr_invoke ()No symbol table info available.#2 0x03f29333 in _dispatch_queue_invoke ()No symbol table info available.#3 0x03f29593 in _dispatch_worker_thread2 ()No symbol table info available.#4 0x90beab24 in _pthread_wqthread ()No symbol table info available.#5 0x90bec6fe in start_wqthread ()No symbol table info available.Thread 2 (process 1938):#0 0x905a902e in __workq_kernreturn ()No symbol table info available.#1 0x90beaccf in _pthread_wqthread ()No symbol table info available.#2 0x90bec6fe in start_wqthread ()No symbol table info available.Thread 1 (process 1938):#0 0x01d4f09f in objc_msgSend ()No symbol table info available.#1 0x00000000 in ?? ()No symbol table info available.
编辑:重新安装SDK,没有修复任何东西.
编辑:这是gcc命令(应用名称已更改)
CompileC /Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/Objects-normal/i386/SlIDeshowVIEwController.o Classes/SlIDeshowVIEwController.m normal i386 objective-c com.apple.compilers.llvmgcc42cd /Users/kyle/dev/app/iphonesetenv LANG en_US.US-ASCIIsetenv PATH "/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -DSTAGING_API=1 -DDEBUG=1 -isysroot /Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator4.3.sdk -fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gDWarf-2 -fvisibility=hIDden -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_required=40000 -iquote /Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/app-generated-files.hmap -I/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/app-own-target-headers.hmap -I/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/app-all-target-headers.hmap -iquote /Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/app-project-headers.hmap -I/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Products/DeBUG-iphonesimulator/include -IAirship/library -IAirship/library/Airshiplib -IAirship/library/InBoxlib -IAirship/library/Pushlib -IAirship/library/StoreFrontlib -IAirship/library/Subscriptionlib -IAirship/Common -I/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/DerivedSources/i386 -I/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/DerivedSources -F/Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Products/DeBUG-iphonesimulator -F/Users/kyle/dev/app/iphone -include /Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/@R_236_3013@headers/app_Prefix-gbcbcigtjfyhhsbcjwzscgyfdbfj/app_Prefix.pch -c /Users/kyle/dev/app/iphone/Classes/SlIDeshowVIEwController.m -o /Users/kyle/library/Developer/Xcode/DerivedData/app-biyijbbdlfmlcihjougudvgJsxcd/Build/Intermediates/app.build/DeBUG-iphonesimulator/app.build/Objects-normal/i386/SlIDeshowVIEwController.o解决方法 好的,所以经过数周和数周后,我终于找到了解决方案:根据此评论修复我的链接器标志: EXC_BAD_ACCESS when copying or retaining Block
基本上你将-weak_library /usr/lib/libSystem.B.dylib更改为-weak-lSystem.
我之前添加了这个,因为Urban Airship需要它.
总结以上是内存溢出为你收集整理的iPhone模拟器在应用程序启动时崩溃全部内容,希望文章能够帮你解决iPhone模拟器在应用程序启动时崩溃所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)