我最近将 XCode 从 5.0 更新到 5.1。使用 XCode 5.0 成功编译的同一个项目现在根本无法使用 5.1 编译
错误发生在链接阶段。这是错误:
0 0x103303f93 __assert_rtn + 144
1 0x1033a6ed4 ld::passes::stubs::Pass::makeStub(ld::Atom const&, bool) + 0
2 0x1033a75f7 ld::passes::stubs::Pass::process(ld::Internal&) + 497
3 0x1033a7c07 ld::passes::stubs::doPass(Options const&, ld::Internal&) + 111
4 0x103304b50 main + 772
5 0x7fff8fa2f5fd start + 1
A linker snapshot was created at:
/tmp/Crumbee-2014-02-19-123506.ld-snapshot
ld: Assertion failed: (target != NULL), function stubableFixup, file /SourceCache/ld64/ld64-236.3/src/ld/passes/stubs/stubs.cpp, line 126.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我一直在用谷歌搜索这个错误,但唯一的结果是来自 Apple Open Source repo 的 stubs.cpp 文件的源代码。有没有熟悉链接器和 XCode 最新更改的人可以帮助我?
我手边有消息中提到的快照,以防有人知道如何处理它来解决问题。