ios - 找不到 -lstdc++.6.0.9 的库 - Xcode 10

标签 ios swift xcode

<分区>

当我想在 Xcode 10.0 中构建我的应用程序时,我遇到了这个错误。我该如何解决这个问题?

library not found for -lstdc++.6.0.9

Mac 操作系统版本:High Sierra 10.13.6 iOS iPad 版本:12.0 Xcode 版本:10.0

问候, 图切。

最佳答案

来自 Xcode 10 release笔记,

Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of macOS 10.9 or later, or iOS 7 or later. Besides changing the C++ Standard Library build setting, developers should audit hard-coded linker flags and target dependencies to remove references to libstdc++ (including -lstdc++, -lstdc++.6.0.9, libstdc++.6.0.9.tbd, and libstdc++.6.0.9.dylib). Project dependencies such as static archives that were built against libstdc++ will also need to be rebuilt against libc++. (40885260)

关于ios - 找不到 -lstdc++.6.0.9 的库 - Xcode 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52401828/

相关文章:

iphone - 保存和检索图像使应用程序运行缓慢

ios - 尝试在 Swift 应用程序中导入 MoPub 库时出错(错误 : use of undeclared type)

ios - 如何在 firebase 中管理用户的不同身份验证

ios - 使用 Xcode 11.2 为 My Mac 构建 iOS 框架报告错误

ios - 在 iTunes Connect : 中可以从一个帐户转移到另一个帐户的最大应用程序数量是多少

json - 我可以在 Swift 中声明一个名为 'Type' 的变量吗?

ios - 当前页面点较大的页面控件不起作用(带滚动的 UIPageControl)

ios - App中的iOS自定义网址方案在第一次使用网址方案时无法打开

iOS - 通过 HTTP POST 上传图片

ios - 切换跟踪模式时如何旋转iOS MKMapView使其朝北?