gpt4 book ai didi

ios - 使用 .framework 时出现问题,其中包含 .a 静态库

转载 作者:可可西里 更新时间:2023-11-01 03:32:47 24 4
gpt4 key购买 nike

我有 .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 几乎相同的事情。感谢社区。

最佳答案

如前所述here ,通过将“ strip 样式”从“所有符号”更改为“非全局符号”解决了同样的问题,允许在类别中使用全局符号。

关于ios - 使用 .framework 时出现问题,其中包含 .a 静态库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36358264/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com