xcode - 目标的build设置中没有 "Metal Compiler"

标签 xcode metal build-settings cikernel

我正在使用 Xcode 10.1。即使在目标的build设置中使用搜索功能,我也找不到“Metal Compiler”或任何与 Metal 相关的东西。

在这里描述,有可以在 Build Settings 中设置的 Metal 设置,但我找不到任何东西:https://developer.apple.com/documentation/coreimage/cikernel/2880194-init

是被剪掉了还是换了?

最佳答案

在所选目标的 Compile Sources 构建阶段,您必须至少有一个 Metal 源文件(通常具有 .metal 扩展名)才能显示 Metal 编译器设置。

关于xcode - 目标的build设置中没有 "Metal Compiler",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54336446/

相关文章:

ios - Xcode 不显示来自 CocoaPods Pod 的警告

swift - CAMetalLayer nextDrawable 返回 nil 因为分配失败

ios - 如何编译两个版本的 Metal 文件

ios - Xcode 不显示build设置选项的菜单

objective-c - -DNDEBUG 和 -DNS_BLOCK_ASSERTIONS 标志有什么区别

iphone - iOS:通用应用程序 - 仅作为 iPhone 发布

xcode - 为什么我必须将库嵌入到应用程序二进制文件中才能正常工作?

ios - 在Xcode Beta中分发内部版本时,“IPA处理失败”

c++ - Xcode 中基于文件类型的奇怪语法错误

swift - 如何在 SceneKit 中使用 SCNBufferBindingBlock?