首页 > 解决方案 > 在 xcode 10 上找不到 stdlibc++ 标头错误

问题描述

我们为我们的 iOS 项目编写了一些 c 库,升级到 Xcode 10 后,编译时出现错误:

error: include path for stdlibc++ headers not found; pass ‘-std=libc++’
on the command line to use the libc++ standard library instead
[-Werror,-Wstdlibcxx-not-found]
        1 error generated.

我们需要在哪些地方更改生成文件?因为我在其中找不到 '-std=' 参数。

标签: c++iosxcodec++11libc++

解决方案


在 Apple 的开发者论坛中找到答案。 https://forums.developer.apple.com/thread/106114 sdk 工具需要从旧版 Xcode 复制。


推荐阅读