ld: warning: Could not find or use auto-linked framework ‘DownloadProxyFramework’
Undefined symbols for architecture arm64:
: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
手动引入第三方库报错
ld: warning: Could not find or use auto-linked framework 'DownloadProxyFramework'
Undefined symbols for architecture arm64:
"std::__1::__shared_weak_count::~__shared_weak_count()", referenced from:
___28+[TXLiveBase sharedInstance]_block_invoke in TXLiteAVSDK_Player(TXLiveBase.o)
std::__1::__shared_ptr_emplace<txliteav::TXCNtpServiceCallbackImpl, std::__1::allocator<txliteav::TXCNtpServiceCallbackImpl> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXLiveBase.o)
std::__1::__shared_ptr_emplace<txliteav::TXCNtpServiceCallbackImpl, std::__1::allocator<txliteav::TXCNtpServiceCallbackImpl> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXLiveBase.o)
std::__1::__shared_ptr_emplace<txliteav::TXCNtpService, std::__1::allocator<txliteav::TXCNtpService> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXLiveBase.o)
std::__1::__shared_ptr_emplace<txliteav::TXCNtpService, std::__1::allocator<txliteav::TXCNtpService> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXLiveBase.o)
std::__1::__shared_ptr_emplace<txliteav::TXCAudioEventCallback, std::__1::allocator<txliteav::TXCAudioEventCallback> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXCPlayerLiveImpl.o)
std::__1::__shared_ptr_emplace<txliteav::TXCAudioEventCallback, std::__1::allocator<txliteav::TXCAudioEventCallback> >::~__shared_ptr_emplace() in TXLiteAVSDK_Player(TXCPlayerLiveImpl.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
几百个报错
做如下修改:
Mach-O 改成Static Library重新编译。
编译没问题,运行项目报如下问题:
何解?