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

library not found for -libstdc++

作者: Peter杰 | 来源:发表于2019-06-18 14:46 被阅读0次

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

    解决办法

    下载libstdc++库,下载链接,提取码arms

    将 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/wangzqtx.html