Iphone Linphone ld:未找到架构x86_64-Xcode 10的符号
我最初删除了名为Iphone Linphone ld:未找到架构x86_64-Xcode 10的符号,iphone,swift,xcode10,linphone,Iphone,Swift,Xcode10,Linphone,我最初删除了名为lstdc++的库,因为Xcode要求我删除并添加另一个名为libc++的库 在那之后,又发生了一个错误,然后我已经有两天无法解决它了 它告诉我的是错误 Undefined symbols for architecture x86_64: "std::_List_node_base::unhook()", referenced from: std::list<Linphone::Conference::Participant, std::allocator<Li
lstdc++
的库,因为Xcode
要求我删除并添加另一个名为libc++
的库
在那之后,又发生了一个错误,然后我已经有两天无法解决它了
它告诉我的是错误
Undefined symbols for architecture x86_64:
"std::_List_node_base::unhook()", referenced from:
std::list<Linphone::Conference::Participant,
std::allocator<Linphone::Conference::Participant>
>::remove(Linphone::Conference::Participant const&) in
liblinphone.a(conference.cc.o)
"std::_List_node_base::hook(std::_List_node_base*)", referenced from:
Linphone::Conference::addParticipant(_LinphoneCall*) in
liblinphone.a(conference.cc.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
架构x86_64的未定义符号:
“std::_List_node_base::unhook()”,引用自:
std::list::remove(Linphone::Conference::Participant const&)in
liblinphone.a(conference.cc.o)
“std::_列表_节点_基础::hook(std:_列表_节点_基础*)”,引用自:
Linphone::会议::在中添加参与者(_LinphoneCall*)
liblinphone.a(conference.cc.o)
ld:找不到架构x86_64的符号
叮当声:错误:链接器命令失败,退出代码为1(使用-v查看
调用)
你们对这个问题有什么想法吗?我一直在寻找另一个网站,它告诉我要遵循这一点,但仍然没有工作 这对我很管用
->我删除了libstdc++.6.0.9.tbd->清理并删除派生数据->运行
请备份您的代码并试用它我也遇到了同样的问题,我可以通过从旧xcode复制lstdc++并在build设置中将CLANG_CXX_LIBRARY选项设置为libstdc++来解决它 这里是您需要复制的内容,假设两个xcode版本都位于/Applications中并命名为xcode 10和xcode 9:
cp /Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libstdc++.* /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
cp /Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.* /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
cp /Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libstdc++.* /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
别忘了清除派生数据并重新启动xcode