Open LeoLeeCN opened 4 years ago
0 0x1049eb198 __assert_rtn + 127 1 0x1049f4f04 ld::passes::order::Layout::buildFollowOnTables() (.cold.5) + 0 2 0x1049c1de7 ld::passes::order::Layout::buildFollowOnTables() + 2209 3 0x1049c27c5 ld::passes::order::Layout::doPass() + 23 4 0x1049c28cd ld::passes::order::doPass(Options const&, ld::Internal&) + 151 5 0x1048ce113 main + 1001 6 0x7fff71a432e5 start + 1 ld: Assertion failed: (_followOnNexts.count(atom) == 0), function buildFollowOnTables, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-520/src/ld/passes/order.cpp, line 411. clang: error: linker command failed with exit code 1 (use -v to see invocation)
有解决么,遇到了同样的问题,求解!!!
+1
出现此错误应该是因为工程中包含了不支持重排的库,我们的项目是因为包含了 PLCrashReporter 这个库而导致这个问题,去掉就好了
In Target's Build Settings -> Other Linker Flags, add two flag: -Xlinker -no_objc_category_merging
https://forums.developer.apple.com/message/420090#420090
0 0x1049eb198 __assert_rtn + 127 1 0x1049f4f04 ld::passes::order::Layout::buildFollowOnTables() (.cold.5) + 0 2 0x1049c1de7 ld::passes::order::Layout::buildFollowOnTables() + 2209 3 0x1049c27c5 ld::passes::order::Layout::doPass() + 23 4 0x1049c28cd ld::passes::order::doPass(Options const&, ld::Internal&) + 151 5 0x1048ce113 main + 1001 6 0x7fff71a432e5 start + 1 ld: Assertion failed: (_followOnNexts.count(atom) == 0), function buildFollowOnTables, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-520/src/ld/passes/order.cpp, line 411. clang: error: linker command failed with exit code 1 (use -v to see invocation)