美文网首页iOS点点滴滴
【iOS开发】Xcode10 & iOS12 爬坑指南-

【iOS开发】Xcode10 & iOS12 爬坑指南-

作者: 好奇的蝈蝈 | 来源:发表于2018-10-10 17:01 被阅读9次

问题: library not found for -libstdc++.6.0.9

现象

项目编译报错 library not found for -libstdc++.6.0.9

详解

项目中可能直接或间接的用到了libstdc++、libstdc++.6、libstdc++ 6.0.9等库,比如使用了高德地图等,而在XCode10和iOS12中,用libc++ 代替了libstdc++ ,如下图


解决办法

把三个c++ 的库
libstdc++、libstdc++.6、libstdc++6.0.9 复制到以下两个文件夹下

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

上面三个文件可以从xcode9中拷贝,或者从网盘下载:

链接: https://pan.baidu.com/s/1dXA_54ysQeUZwcUnnvcrJg 密码:ghho

相关文章

网友评论

    本文标题:【iOS开发】Xcode10 & iOS12 爬坑指南-

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