kstenerud / KSCrash

The Ultimate iOS Crash Reporter
MIT License
4.24k stars 711 forks source link

Undefined symbols for architecture armv7: #28

Open uschen opened 11 years ago

uschen commented 11 years ago

Just Git Clone, and build or archive. did i forget something?

Undefined symbols for architecture armv7: "typeinfo for long long", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for unsigned short", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for unsigned long", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for long", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for int", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for unsigned char", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for long double", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for std::exception", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for double", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for float", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "_cxa_rethrow", referenced from: CPPExceptionTerminate() in KSCrash(KSCrashSentryCPPException.o) "typeinfo for char", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for short", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "_cxa_begin_catch", referenced from: CPPExceptionTerminate() in KSCrash(KSCrashSentryCPPException.o) "typeinfo for char const", referenced from: GCC_except_table2 in KSCrash(KSCrashSentryCPPException.o) "cxa_demangle", referenced from: CPPExceptionTerminate() in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for unsigned long long", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "___cxa_current_exception_type", referenced from: CPPExceptionTerminate() in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for char", referenced from: GCC_except_table2 in KSCrash(KSCrashSentry_CPPException.o) "typeinfo for unsigned int", referenced from: GCC_except_table2 in KSCrash(KSCrashSentryCPPException.o) "cxa_end_catch", referenced from: CPPExceptionTerminate() in KSCrash(KSCrashSentry_CPPException.o) "std::set_terminate(void (*)())", referenced from: _kscrashsentry_installCPPExceptionHandler in KSCrash(KSCrashSentry_CPPException.o) _kscrashsentry_uninstallCPPExceptionHandler in KSCrash(KSCrashSentry_CPPException.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

uschen commented 11 years ago

try to archive: \ BUILD FAILED **

The following build commands failed: Ld /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/KSCrash-hbykmpiwdvfxqtdgcovbslbodmlv/Build/Intermediates/ArchiveIntermediates/KSCrash/IntermediateBuildFilesPath/UninstalledProducts/KSCrash.framework/Versions/A/KSCrash normal i386 (1 failure)

kstenerud commented 11 years ago

Yes, I forgot to mention in the readme, you need to link in libc++ due to the new c++ exception handling code.

uschen commented 11 years ago

yes... ... found it at apple dev forum, basically, alternatively, add libstdc++.dylib to the Binary

uschen commented 11 years ago

and also, non-ideally, changing main.m to main.mm works too .............

maciekish commented 9 years ago

Adding libstdc++.dylib did the trick, thanks!

kattrali commented 8 years ago

Fixed by fde5c7b1