升级最新Xcode10缺少libstdc++6.0.9

是因为XCode 10中已经移除了libstdc++(libstdc++.6、libstdc++6.0.9)库。

解决方法一:

删除libstdc++(libstdc++.6、libstdc++6.0.9)库,然后添加libc++库

解决方法二:

将Xcode 9中的6.0.9丢到Xcode中,然后重启Xcode。(需注意这个分真机和模拟器)
链接: https://pan.baidu.com/s/1Cloc3i7KwGQPaVrdUGI3yw 提取码: wj1e

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

Xcode 10 ld: library not found for -lstdc++.6
library not found for -lstdc++.6.0.9
library not found for -lstdc++.6
library not found for -lstdc++

都是一样的问题,-lstdc++.6.dylib-lstdc++.dylib都是libstdc++.6.0.9.dylib的替身


右键我们刚才加入的libstdc++.6.0.9.dylib制作替身,然后制作两个替身,分别改名为libstdc++.6.dyliblibstdc++.dylib,模拟器和真机是一样的道理,只不过路径不同,完事之后run一下就可以了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容