library not found for -lstdc++.6.0.9
是因为缺少以下文件造成的
libstdc++.6.0.9
libstdc++.6
libstdc++
但是这种文件有两种,一种是以.tdb
结尾的,另外一种是以.dylib
结尾的。
需要我们将对应格式的3个文件放到对应的目录下面。
放.tbd
文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
放.dylib
文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
放.tbd
文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
如果误将
tdb
文件放到.dylib
的文件夹下,可能会报如下的错误。 大概有50多个相关的错误,我这里就是因为我误把tdb
文件放到.dylib
的文件夹下了。 根本不是第三方库支不支持 Xcode 10.2.1 的问题。
:-1: Undefined symbol: std::basic_fstream<char, std::char_traits<char> >::basic_fstream()
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有