美文网首页
library not fount for -lstdc++.6

library not fount for -lstdc++.6

作者: HELLO_Cand | 来源:发表于2018-12-05 14:24 被阅读14次

1、问题截图

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

相关文章

网友评论

      本文标题:library not fount for -lstdc++.6

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