Undefined symbols for architecture arm64:
"std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
elianContext::~elianContext() in liblibelian.a(elian.o)
"std::string::_Rep::_S_empty_rep_storage", referenced from:
_elianNew in liblibelian.a(elian.o)
elianContext::~elianContext() in liblibelian.a(elian.o)
"std::string::append(char const*, unsigned long)", referenced from:
_elianNew in liblibelian.a(elian.o)
"std::string::assign(char const*, unsigned long)", referenced from:
_elianNew in liblibelian.a(elian.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我的Xcode设置 - enter image description here。 而且,我是-------- lipo -create libA.a libB.a libC.a
libA.a支持:i386 x86_64(libA.a是模拟器)
libB.a支持:armv7 arm64 armv7s
请帮助我,谢谢!
答案 0 :(得分:0)
转到&#34;构建设置&#34; - &GT; &#34;有效架构&#34;并确保你添加了arm64,armv7和armv7s。如果你添加其中任何一个,请转到&#34; product&#34; - &GT; &#34;清洁&#34;然后再次尝试在您的设备上运行该应用。祝你好运,希望这有帮助!
答案 1 :(得分:0)