Skip to content

Ultralight Quick Start Metal Error #1

@tsur

Description

@tsur

Hi guys,

I was able to build the project on MacOS v10.13.6 with metal support and everything was fine but cannot run it

2020-04-07 18:24:42.943 MyApp[4705:41918] 
Failed to create pipeline state, error Error Domain=CompilerError Code=1 
"Function fragmentShader has a deployment target which is incompatible with this OS."
UserInfo={NSLocalizedDescription=Function fragmentShader has a deployment target which 
is incompatible with this OS.}
Illegal instruction: 4

most probably related to metal version, should I update to a higher MacOS version? I'm also assuming only Xcode command line tools are required but not whole Xcode, any help is welcome

I tried setting the MACOSX_DEPLOYMENT_TARGET env var also updating the CMakeLists.txt with set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version") but still not working, looks like it is required XCode and SDK (not just the command line tools)

thanks so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions