美文网首页
library not found for -libstdc++

library not found for -libstdc++

作者: toro宇 | 来源:发表于2020-03-10 15:17 被阅读0次

一、报错原因
Xcode升级到Xcode10.0后,由于去掉陈旧的libstdc++库替换为libc++,libc++相对是苹果最新版的C++库,经过优化并全面支持C++11

二、下载libstdc++库
百度云盘下载链接 提取密码:ggob
三、将 libstdc++、libstdc++.6、libstdc++6.0.9拷贝到Xcode的如下目录:
1、真机环境:

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

2、模拟器环境:

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

相关文章

网友评论

      本文标题:library not found for -libstdc++

      本文链接:https://www.haomeiwen.com/subject/drwwdhtx.html