升级到 Xcode 10.2.1 仍会出现下列问题
代码语言:javascript复制library not found for -lstdc .6.0.9是因为缺少以下文件造成的
代码语言:javascript复制libstdc .6.0.9
libstdc .6
libstdc 文件在这里
- .dylib文件
- .tdb文件
但是这种文件有两种,一种是以.tdb结尾的,另外一种是以.dylib结尾的。
需要我们将对应格式的3个文件放到对应的目录下面。
- 1个真机路径
- 2个模拟器路径
真机路径
放.tbd文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib模拟器路径-1
放.dylib文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib模拟器路径-2
放.tbd文件
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib代码语言:javascript复制如果误将
tdb文件放到.dylib的文件夹下,可能会报如下的错误。 大概有50多个相关的错误,我这里就是因为我误把tdb文件放到.dylib的文件夹下了。 根本不是第三方库支不支持 Xcode 10.2.1 的问题。
:-1: Undefined symbol: std::basic_fstream<char, std::char_traits<char> >::basic_fstream()


