1
我已經爲我的項目添加了邏輯測試,並且這些測試似乎運行正常,但是現在如果我返回並在模擬器上運行我的項目,得到以下錯誤。該項目針對設備構建良好。ld:斷言失敗:(src.atom!= NULL),函數addRelocFixup
任何想法?被撕裂我的頭髮一兩試圖理解什麼是錯的日子..
0 0x105137098 __assert_rtn + 144
1 0x10513a431 mach_o::relocatable::Section<x86>::addRelocFixup(mach_o::relocatable::Parser<x86>&, macho_relocation_info<Pointer32<LittleEndian> > const*) + 1781
2 0x10514a636 mach_o::relocatable::Section<x86>::makeFixups(mach_o::relocatable::Parser<x86>&, mach_o::relocatable::Parser<x86>::CFI_CU_InfoArrays const&) + 90
3 0x105146aad mach_o::relocatable::Parser<x86>::parse(mach_o::relocatable::ParserOptions const&) + 1433
4 0x10513e0c3 mach_o::relocatable::Parser<x86>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 313
5 0x10513baa1 mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 149
6 0x10515c33a archive::File<x86>::makeObjectFileForMember(archive::File<x86>::Entry const*) const + 794
7 0x10515bc32 archive::File<x86>::forEachAtom(ld::File::AtomHandler&) const + 424
8 0x10516d76c ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&) + 420
9 0x105176884 ld::tool::Resolver::resolve() + 44
10 0x105137380 main + 370
A linker snapshot was created at:
/tmp/TagItApp-2013-06-22-153014.ld-snapshot
ld: Assertion failed: (src.atom != NULL), function addRelocFixup, file /SourceCache/ld64/ld64-136/src/ld/parsers/macho_relocatable_file.cpp, line 5468.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
嘗試清理項目,構建文件夾,重置模擬器,重新啓動Xcode並重新啓動計算機。黃金法則是一起做:) –
是的,我試過了,謝謝......來自一些在線研究,這似乎是一個已知的蘋果bug。有人同意嗎? – Jeremy
嗯,我會說iPhone模擬器是一個大問題:D我總是有問題,從殭屍對象開始,以奇怪的malloc()行爲結束。 –