Xcode 10(iOS 12)不包含libstdc ++ 6.0.9 [英] Xcode 10 (iOS 12) does not contain libstdc++6.0.9

查看:248
本文介绍了Xcode 10(iOS 12)不包含libstdc ++ 6.0.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Apple下载了最新的Xcode,但发现无法搜索名为"libstdc ++ 6.0.9"的库.

I download the newest Xcode from Apple, but I found I cannot search the library named "libstdc++6.0.9".

推荐答案

libstdc ++已于5年前弃用.苹果最近的平台(tvOS和watchOS)不支持它.

libstdc++ was deprecated 5 years ago. Apple's more recent platforms (tvOS and watchOS) don't support it.

支持已从iOS 12.0 Simulator运行时中删除,但仍保留在iOS 12.0(设备)运行时中,以实现与运输应用程序的二进制兼容性.

Support was removed from the iOS 12.0 Simulator runtime, but it remains in the iOS 12.0 (device) runtime for binary compatibility with shipping apps.

通过将CLANG_CXX_LIBRARY构建设置("C ++标准库")设置为libc ++,应更新项目以使用libc ++而不是libstdc ++.

You should update your project to use libc++ rather than libstdc++ by setting the CLANG_CXX_LIBRARY build setting ("C++ Standard Library") to libc++.

如果您有任何依赖于libstdc ++.tbd的静态库,则可以暂时解决此问题,方法是从Xcode 9.4(和iOS模拟器运行时中的libstdc ++.*.dylib)中的SDK复制文件,但并非如此.长期的解决方案.您应该与这些库的提供者联系,并请求使用libc ++构建的版本.

If you have any static libraries that depend on libstdc++.tbd, you can workaround it for now by copying the file from the SDKs in Xcode 9.4 (and libstdc++.*.dylib in the iOS simulator runtime), but that is not a long term solution. You should contact the provider of those libraries and request versions built using libc++.

这篇关于Xcode 10(iOS 12)不包含libstdc ++ 6.0.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆