Getting issue while using .framework which have .a static library inside it

I have .framework file which was working prior including another .a/.framework files in it.

My framework build successfully but after adding my .framework file to another project it is not working.

After adding other .a and .framework file in my frameworks build phases, I am getting this error.

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)

Please note before adding other .a and .framework files it is working.

Note: I'm doing the almost same thing appodeal.com does. Thanks community.


如此处所述,通过将“条形”从“所有符号”更改为“非全局符号”来解决相同的问题,从而允许全局符号在类别中使用。

链接地址: http://www.djcxy.com/p/32984.html

上一篇: Android:稀有和非

下一篇: 在使用其中包含静态库的.framework时遇到问题