ld:断言失败:(src.atom!= NULL),函数addRelocFixup

时间:2013-07-22 14:40:22

标签: ios objective-c clang xcode4.6.3

我已经为我的项目添加了逻辑测试,那些似乎运行正常,但现在如果我回去并对模拟器运行我的项目,我会收到以下错误。该项目对设备构建良好。

有什么想法吗?一直在试着弄出一两天试图弄出我的头发..

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)

1 个答案:

答案 0 :(得分:0)

我在模拟器上遇到了Bump库的这个问题。该线程提供了一个模拟器友好版本的lib:https://github.com/bumptech/bump-api-ios/issues/15