question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated XCode project does not link UnityARKitFaceTracking

See original GitHub issue

Bug description

unity-builder successfully generates an Xcode project dependent on ARKit Face Tracking, which can then be compiled successfully from the IDE;

However when compiling that Xcode project from the command line, a linker error is generated: Undefined symbols for architecture arm64

I compared the Xcode project generated from my Unity editor to the one generated by unity-builder, and found that when running from the command line with the same parameters:

xcodebuild -scheme Unity-iPhone -project Unity-iPhone.xcodeproj -configuration Release -destination 'generic/platform=iOS'

The Xcode linking step Ld passes a number of parameters: My proj: ... -lUnityARKit -framework iosInternal -lUnityARKitFaceTracking ... unity-builder: ... -lUnityARKit -framework iosInternal ...

LibrarylUnityARKitFaceTracking is not linked in the unity-builder version, presumably causing the linker error.

Additional details

All tests running macOS 10.15.6, Xcode 12.0, Unity 2021.5f1, ARKit Face Tracking 4.1.0-preview.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
charlierobertscommented, Mar 26, 2021

just pinging the thread in case any progress has been made on this… I’m having the same errors. edit: if I go ahead and check the box in Unity to include face tracking (2021.1.0f1) then the linking errors disappear. So it seems like the build settings coming from Unity are incorrect when that box (Project settings > XR Plug-in Management > ARKit > Face Tracking) is not checked.

0reactions
acmolescommented, Aug 27, 2022

@charlieroberts Great find, this helped me.

For anyone else looking for build issues relating to ARKit face tracking, the solution is still to check Face Tracking even if you’re not using it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generated XCode project does not link UnityARKitFaceTracking
Bug description unity-builder successfully generates an Xcode project dependent on ARKit Face Tracking, which can then be compiled ...
Read more >
Why do I get a linking error after updating to Xcode 12
Hello, I have a Unity project that uses a native Swift + ObjC library that I made using Firebase MLKit. When trying to...
Read more >
ARFoundation-based app not linking ARKit package correctly ...
I've set up a test app from scratch to try out the new ARFoundation packages for cross-platform AR on ARKit and ARCore. My...
Read more >
Manual: Structure of a Unity Xcode Project
Every generated Unity iOS Xcode project has the following structure and targets: UnityFramework: A library part in the UnityFramework target.
Read more >
How to Track Objects in AR with ARKit 3
This tutorial was implemented in: Xcode 10.1; Unity 2019.3.0a6 Personal. Tutorial Outline. Setup Unity Project; Install AR Foundation & ARKit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found