Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Resolved Building Without Metal

Discussion in 'AR' started by DreamEnder, Aug 8, 2018.

  1. DreamEnder

    DreamEnder

    Joined:
    Apr 12, 2011
    Posts:
    191
    I'm trying to build without Metal and I'm getting this linker error:

    Undefined symbols for architecture arm64:

    "_MTLCreateSystemDefaultDevice", referenced from:

    ARKitXRCameraProvider::SetupMetal() in UnityARKit.a(ARKitXRCameraProvider.o)

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  2. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    605
    The ARKit XR Plugin currently requires metal.

    Could you explain your use case for not using Metal a bit more?
     
  3. DreamEnder

    DreamEnder

    Joined:
    Apr 12, 2011
    Posts:
    191
  4. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    280
    Hi, i need to build without metal because some extenal sdk not support it....there is a way to not use metal in arkit?
     
  5. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Ikaro88 likes this.
  6. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    280
    Hi Thanks a for for your time.

    Since metal create some problem with my recording video sdk, there is a way to control the graphics API at runtime instead?
     
  7. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Hey @Ikaro88, switching graphics API at runtime is not supported.
     
    Ikaro88 likes this.