Library not loaded: /usr/lib/libstdc++.6

下载所需要的文件:

github下载
百度网盘下载 提取码: qwhy

将下载的文件拷贝到对应的目录中

模拟器:
1、将“Simulator”文件中".dylib"的所有文件拷贝到下边的目录中

Xcode11以上(含Xcode11):
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Xcdoe11以下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

2、将“Simulator”文件中". tdb"的所有文件拷贝到下边的目录中

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/


真机:
1、将“Device”文件中的所有“.tdb”拷贝到下边目录中

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

参考文献:https://github.com/cy920820/Libstdc-.6.0.9-files

你可能感兴趣的:(Library not loaded: /usr/lib/libstdc++.6)