- 升级到Xcode 10 不支持lstdc++.6的解决办法
- xcode12. ld: library not found f
- ld: library not found for -lstdc
- library not found for -lstdc++.6
- library not found for -lstdc++.6
- library not found for -lstdc++.6
- library not found for -lstdc++.6
- library not found for -lstdc++.6
- library not found for -lstdc++.6
- library not found for -lstdc++.6
今天升级了测试机系统到12.0,然后连接Xcode运行项目,结果出现崩溃信息:
![](https://img.haomeiwen.com/i2212546/058ac684e5d7f56c.png)
查阅相关资料后发现原因是苹果在XCode10和iOS12中移除了libstdc++这个库,由libc++这个库取而代之,检查了一遍自己的代码没有发现有对libstdc++的引用之后查看podFile,发现之前导入的第三方库都指定了版本,于是怀疑是第三方库对libstdc++进行了引用
![](https://img.haomeiwen.com/i2212546/43e0ed66d3854e9a.png)
然后取消了版本指定,执行pod update之后编译成功
![](https://img.haomeiwen.com/i2212546/b9ceeafd6e42e0dd.png)
网友评论