Xcode10删除libstdc++库编译报错

Xcode10中删除了`libstdc++`库,导致老项目在Xcode11中编译失败,解决方法如下:

`libstdc++`库下载链接:https://pan.baidu.com/s/1y08On0bQo-v7Me7_rYIi-g。

或者点击—> libstdc++库

其中文件夹 1、2、3、4 中的文件分别对应复制到Xcode中的以下4个目录中即可:

/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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

/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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 首先如果遇到应用卡顿或者因为内存占用过多时一般使用Instruments里的来进行检测。但对于复杂情况可能就需要用...
    攻克乃还_阅读 1,968评论 0 7
  • two Last login: Tue Aug 4 17:09:57 on ttys000 yushengyang...
    aofeilin阅读 1,062评论 1 9
  • Xcode10正式版今天终于可以下载了,由于公司的网上... 直到晚上才爬完.兴冲冲的运行项目,但还是发生了一个报...
    wesk痕阅读 1,301评论 3 2
  • 昨天xcode10正式版发布了,为了适配新系统和新机型所以果断把xcode升级到了xcode10。xcode10最...
    攻城狮GG阅读 1,911评论 5 6
  • 1.error: Multiple commands produce error: Multiple comman...
    大牛大神阅读 2,139评论 1 12