【问题标题】:iOS Metal can't exec 'metal' (No such file or directory)iOS Metal 无法执行“metal”(没有这样的文件或目录)
【发布时间】:2014-09-12 19:02:45
【问题描述】:

如何在 Xcode 6 中编译 iOS «Metal» 游戏并将目标设置为 iOS 模拟器?

error: can't exec 'metal' (No such file or directory) command metal failed with exit code 71

【问题讨论】:

    标签: ios iphone xcode xcode6 metal


    【解决方案1】:

    当目标设置为 iOS 模拟器时,无法编译 «Metal» 项目。

    您必须连接物理设备并将其用作编译项目时的目标。

    如关于此问题的答案所述:iOS 8 Metal templates are broken。

    更新:从 Xcode 11 开始,«Metal» 项目可以在 iOS 模拟器上编译和运行。

    【讨论】:

    • 我正在运行 v6.0.1,但我仍然遇到这个问题
    【解决方案2】:

    从 Xcode 11 开始,在 macOS 10.15 Catalina 上运行时,iOS 13、tvOS 13 和 watchOS 6 模拟器支持 Metal。

    【讨论】:

      【解决方案3】:

      你不能在模拟器上运行 metal,但你可以使用这个解决方法,只要你有像 Open GL 这样的图形代码的后备,它仍然可以编译

      medium.com/@jscampbell/bare-metal-working-with-metal-and-the-simulator-70e085e3a45

      【讨论】:

        猜你喜欢
        • 2022-01-16
        • 1970-01-01
        • 2020-06-28
        • 2017-09-03
        • 1970-01-01
        • 1970-01-01
        • 2021-01-05
        • 2014-05-23
        • 2019-01-17
        相关资源
        最近更新 更多