在使用.framework时遇到问题,其中包含.a静态库

时间:2016-04-01 13:58:32

标签: ios static-libraries ios-frameworks

我的.framework文件之前正在运行,其中包含其他.a/.framework个文件。

我的框架构建成功,但在将我的.framework文件添加到另一个项目后,它无法正常工作。

在我的框架构建阶段添加其他.a.framework文件后,我收到此错误。

0  0x103014342  __assert_rtn + 144
1  0x10307d28e  ld::tool::OutputFile::addressOf(ld::Internal const&, ld::Fixup const*, ld::Atom const**) + 262
2  0x10307ef54  ld::tool::OutputFile::applyFixUps(ld::Internal&, unsigned long long, ld::Atom const*, unsigned char*) + 3712
3  0x103083693  ld::tool::OutputFile::writeAtoms(ld::Internal&, unsigned char*) + 489
4  0x10307c59e  ld::tool::OutputFile::writeOutputFile(ld::Internal&) + 818
5  0x10307669c  ld::tool::OutputFile::write(ld::Internal&) + 178
6  0x1030151c0  main + 1164
7  0x7fff8d04c5ad  start + 1
A linker snapshot was created at:
/tmp/SDKsIntegrated_Test-2016-03-01-190200.ld-snapshot
ld: Assertion failed: (_mode == modeFinalAddress), function finalAddress, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-253.9/src/ld/ld.hpp, line 749.
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在添加其他.a.framework文件之前请注意。

注意:我正在做与appodeal.com差不多的事情。 谢谢社区。

1 个答案:

答案 0 :(得分:3)

如上所述[{3}},通过更改" Strip Style"解决了同样的问题。来自"所有符号" to"非全球符号",允许全球符号在类别中使用。