ios - How to fix "Xcode quit unexpectedly while using the libclang.dylib plug-in."? -
i have every time in short while after start xcode (5.1.1
).
removed user data, turned off source control (as posts suggested), no effect, still crashes (while showing indexing... never finishes). even reinstalled xcode, without effect, still says same.
did fixed such xcode?
here's crashing thread:
thread 7 crashed:: dispatch queue: ideindex pch creation lock 0 libclang.dylib 0x00000001080c60d9 void llvm::bitstreamwriter::emitrecordwithabbrevimpl<unsigned long long>(unsigned int, llvm::smallvectorimpl<unsigned long long>&, llvm::stringref) + 809 1 libclang.dylib 0x00000001080c5867 void llvm::bitstreamwriter::emitrecord<unsigned long long>(unsigned int, llvm::smallvectorimpl<unsigned long long>&, unsigned int) + 71 2 libclang.dylib 0x00000001081e9f25 clang::astwriter::writeastcore(clang::sema&, llvm::stringref, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::module*) + 35045 3 libclang.dylib 0x00000001081e160e clang::astwriter::writeast(clang::sema&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::module*, llvm::stringref, bool) + 6830 4 libclang.dylib 0x00000001080719a3 clang::astunit::save(llvm::stringref) + 691 5 libclang.dylib 0x0000000107fe974f clang_savetranslationunit + 543 6 com.apple.dt.idefoundation 0x0000000106ac63af -[ideindexclangtranslationunit cxtranslationunit] + 331 7 com.apple.dt.idefoundation 0x0000000106c2c11a +[ideindexclangdatasource translationunitforpchfile:arguments:session:create:] + 259 8 com.apple.dt.idefoundation 0x0000000106cf5552 __90-[ideindex createpchfile:arguments:hashcriteria:target:session:willindex:translationunit:]_block_invoke + 1739 9 libdispatch.dylib 0x00007fff957012ad _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff95702166 _dispatch_barrier_sync_f_invoke + 39 11 com.apple.dt.dvtfoundation 0x0000000105fce5cf -[dvtdispatchlock performlockedblock:] + 95 12 com.apple.dt.idefoundation 0x0000000106cf4932 -[ideindex createpchfile:arguments:hashcriteria:target:session:willindex:translationunit:] + 919 13 com.apple.dt.idefoundation 0x0000000106ac4985 -[ideindexclangdatasource generatedataforjob:] + 1274 14 com.apple.dt.idefoundation 0x0000000106ac42fb -[ideindexdatasource processjob:] + 147 15 com.apple.dt.idefoundation 0x0000000106ac3e33 +[ideindexingengine runfilejob:] + 732 16 com.apple.dt.idefoundation 0x0000000106ac3550 -[ideindexingjob run] + 161 17 com.apple.dt.idefoundation 0x0000000106c3233c __40-[ideindexingjobscheduler _schedulejobs]_block_invoke + 33 18 libdispatch.dylib 0x00007fff957041d7 _dispatch_call_block_and_release + 12 19 libdispatch.dylib 0x00007fff957012ad _dispatch_client_callout + 8 20 libdispatch.dylib 0x00007fff9570309e _dispatch_root_queue_drain + 326 21 libdispatch.dylib 0x00007fff95704193 _dispatch_worker_thread2 + 40 22 libsystem_pthread.dylib 0x00007fff8ead7ef8 _pthread_wqthread + 314 23 libsystem_pthread.dylib 0x00007fff8eadafb9 start_wqthread + 13
or may find full crash report @ https://gist.github.com/eppz/10669132
there .m
file in #import
statement!
it caused 1 single line of code! can't belive it. stole 4 hours of figuring out. oh, combined @class
statement.
it shows error, xcode / clang crashing faster can build. :d
the deadly pattern:
one.h
#import "two.m" // not easy spot actually. @interface 1 : nsobject @end
two.h
@class one; @interface 2 : nsobject @property (nonatomic, weak) 1 *one; @end
i can't reproduce unless project mentioned on 200 classes. must kind of race-condition.
Comments
Post a Comment