- library not fount for -lstdc++.6
- 升级到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
1、问题截图
![](https://img.haomeiwen.com/i1933856/d3f8ba6d81e013c2.png)
2、问题描述
苹果早在Xcode 8中 就废弃了libstdc++, 给了开发者两年时间过渡, 如今在Xcode 10中已不再支持. 在Build Phases > Link Binary With Libraries中已经搜不到libstdc++的库了
3、解决办法
1、临时解决编译报错问题
我们拷贝lstdc++.6.0.9 到xcode模拟器和真机目录下。
1.1真机路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
1.2模拟器路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
原文链接:https://github.com/Cui-y/Libstdc-.6.0.9-files
其他解决办法:https://www.jianshu.com/p/7c97221944ad
网友评论