Xcode 10.0缺少libstdc++库

下载libstdc++

  1. 打开libstdc--xcode10 c++文件夹,打开install.sh
  2. 以第一个路径为例子
    • /Users/xxx/Downloads/Xcode10.0libstdc-master/libstdc--xcode10 c++为文件夹所在路径
    • 如果此文件夹在下载文件夹中 则可以用你的用户名替换xxx
    • 直接拖拽文件夹到install.sh中获取路径
sudo cp /Users/xxx/Downloads/Xcode10.0libstdc-master/libstdc--xcode10 c++/1/* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
  1. 在终端执行install.sh即可添加所有libstdc的库文件
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容