"_uncompress", referenced from:
qUncompress(unsigned char const*, int) in xxx
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
搜索"_uncompress", referenced from
报错原因:缺少libz.tbd
image.png
google::protobuf::DescriptorBuilder::AddSymbol(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, google::protobuf::Message const&, google::protobuf::Symbol) in AuctionLivingSDK(descriptor.o)
google::protobuf::DescriptorBuilder::AddPackage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, google::protobuf::Message const&, google::protobuf::FileDescriptor const*) in AuctionLivingSDK(descriptor.o)
google::protobuf::FieldDescriptor::InternalTypeOnceInit() const in AuctionLivingSDK(descriptor.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
image.png
报错原因:因为是引擎代码是c++混编代码,报错中看到好多c++函数,所以缺少libc++.tbd,上面的图片加c++的库
总结: referenced from 链接不上库的问题在你的库没问题search路径没问题,那有可能是这个库所依赖的库没有在你run的工程中配置。
网友评论