iOS开发-libstdc++.6.dylib解决方案。亲测有效

530 阅读1分钟

在iOS12.0之后去掉了lstdc++.6.0.9.tbd动态库,即Xcode10以后的版本会出现此类问题。

模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

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

真机(iPhone):
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

macOS:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

Git下载地址:https://gitee.com/orz_wei/libstdc.git