Xcode10以及Xcode11缺少libstdc-6dylib报错的解决方案

临时解决方案:

1.将libstdc++.6.0.9tbd.zip解压,放到以下目录:

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

2.将libstdc++_sim.zip解压,放到以下目录:

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

3.将libstdc++.dylib_sim.zip解压,放到目录

Xcode10:

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

Xcode11:

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

最终方案:

去除项目中的libstdc++

资料参考:

libstdc++适配Xcode10与iOS12

更新Xcode11Beta后,因缺少libstdc++.6.dylib模拟器报错问题解决

你可能感兴趣的:(Xcode10以及Xcode11缺少libstdc-6dylib报错的解决方案)