Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[ARKit Face Tracking] ld: 10 duplicate symbols for architecture arm64

Discussion in 'AR' started by OriginTag, Feb 4, 2020.

  1. OriginTag

    OriginTag

    Joined:
    Jul 24, 2019
    Posts:
    1
    Hi,
    I had ARKit XR Plugin installed before for different AR scenes and everything worked well. When I wanted to add face tracking to my application I installed ARKit Face Tracking package. It builds in Unity, but during building in XCode, I have an error:

    duplicate symbol 'malloc_allocator::deallocate(void*)' in:
    Libraries/com.unity.xr.arkit-face-tracking/Runtime/iOS/libUnityARKitFaceTracking.a(malloc_allocator.o)
    Libraries/com.unity.xr.arkit/Runtime/iOS/UnityARKit.a(malloc_allocator.o)
    duplicate symbol 'malloc_allocator::allocate(unsigned long, unsigned long)' in:
    Libraries/com.unity.xr.arkit-face-tracking/Runtime/iOS/libUnityARKitFaceTracking.a(malloc_allocator.o)
    Libraries/com.unity.xr.arkit/Runtime/iOS/UnityARKit.a(malloc_allocator.o)
    duplicate symbol 'stack_allocator::get_config()' in:
    Libraries/com.unity.xr.arkit-face-tracking/Runtime/iOS/libUnityARKitFaceTracking.a(ARKitXRFaceProvider.o)
    Libraries/com.unity.xr.arkit/Runtime/iOS/UnityARKit.a(AllocatorConfig.o)
    duplicate symbol 'stack_allocator::deallocate(void*)' in:
    Libraries/com.unity.xr.arkit-face-tracking/Runtime/iOS/libUnityARKitFaceTracking.a(stack_allocator.o)
    Libraries/com.unity.xr.arkit/Runtime/iOS/UnityARKit.a(stack_allocator.o)
    duplicate symbol 'stack_allocator::allocate(unsigned long, unsigned long)' in:
    Libraries/com.unity.xr.arkit-face-tracking/Runtime/iOS/libUnityARKitFaceTracking.a(stack_allocator.o)
    Libraries/com.unity.xr.arkit/Runtime/iOS/UnityARKit.a(stack_allocator.o)
    ld: 10 duplicate symbols for architecture arm64

    I am using Unity 2018.4.5f1 with AR packages:
    AR Foundation 1.5.0. preview.6
    ARCore XR Plugin 2.2.0 preview.2
    ARKit XR Plugin 2.2.0 preview.5
    ARKit Face Tracking 1.1.0 - preview 5

    When I create a clean project and install same packages I have no problem building at all. Any ideas where to find a cause of my problem and fix it?
     
unityunity