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()