Xcode 11 缺少libstdc++.6.0.9的解决方案、运行模拟器时报错问题
根据原来Xcode10的设置方法,需要将就Xcode的如下路径的libstdc++.6.0.9.dylib、libstdc++.6.dylib、libstdc++.dylib
三个文件拷贝到新的Xcode对应路径中,路径如下:
xcode 10:
-
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libstdc++.6.0.9.dylib
-
复制代码
但是发现Xcode11的/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
路径中并没有CoreSimulator
文件夹,所以无法设置。
xcode 11:
查找资料后发现Xcode11的CoreSimulator
文件夹被移至到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/
这个路径下,所以将旧的Xcode中的libstdc++.6.0.9.dylib、libstdc++.6.dylib、libstdc++.dylib
三个文件移至新目录下就可以解决上述问题。路径如下:
Xcode 11 缺少libstdc++.6.0.9的解决方案、运行模拟器时报错问题_技术力量猛于虎的博客-CSDN博客
xcode 13:
/Applications/Xcode.app 此为 xcode 的安装路径
真机:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
注意:各个不同xcode版本对应的路径有些许差异