xcodeunity-game-enginearkitundefined-symbol

Undefined symbols for architecture arm64 in Unity AR Foundation Xcode project


I am simply building the default sample project Unity provided for AR Foundation: https://github.com/Unity-Technologies/arfoundation-samples

I'm using

Unity 2019.1.5f1

Xcode 10.2.1

I don't change anything in the Unity project. It's targeting iOS so the target architecture is set to arm64.

I get the following linker issues:

xcode build error


Solution

  • I had the same error today. It took me about 8 hours to solve it, so I hope I can help you to save some time.

    The magic happens when you downgrad the AR Foundation and ARKit plugin to 2.1.

    Maybe just downgrading the ARKit plugin will be enough, but I didn't try it yet.

    As I figured out, AR Foundation 2.2 brings ARKit 3 with it. For this you need Xcode 11 beta to build it, but unfortunately you get an error at app start, because ARKit 3 is presumably just available with iOS 13.

    I hope you'll get it work.