Generated XCode project does not link UnityARKitFaceTracking
See original GitHub issueBug 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:
- Created 3 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top GitHub Comments
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.
@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.