Il2cp Build Fail

Running into an issue using scripting backend Il2cp building and running project get a constant error on Unity 2018.3.8f1.

I am using mapbox importing into unity and building and running with IL2CP.

Tried mac tried windows. Has anyone run into a similar issue or idea to resolve this? Best I can work out something to do with ARKitFaceTrackingConfiguration_IsARKitFaceTrackingConfigurationSupported

Failed running /Applications/Unity/Hub/Editor/2018.3.8f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Debug" --outputpath="/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/assets/bin/Data/Native/arm64-v8a/libil2cpp.so" --cachedirectory="/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Assets/../Library/il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.3.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.3.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/edgar/Documents/Android/sdk/android-ndk-r16b" --map-file-parser="/Applications/Unity/Hub/Editor/2018.3.8f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput"

stdout:
Building libil2cpp.so with AndroidToolChain
Output directory: /Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/assets/bin/Data/Native/arm64-v8a
Cache directory: /Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache
ObjectFiles: 653 of which compiled: 0
Total compilation time: 494 milliseconds.
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /Users/edgar/Documents/Android/sdk/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ @"/var/folders/6p/dxc_jlwd2l393k8vy276c5qm0000gn/T/tmpxA6B8I.tmp" -o "/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/linkresult_3E858CC160B437F63F52FFA04E1B3B6B/libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/platforms/android-21/arch-arm64" -gcc-toolchain "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64" -target aarch64-none-linux-android -Wl,--wrap,sigaction -L "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a" -lgnustl_static -llog -rdynamic -fuse-ld=bfd

/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function ARFaceAnchor_GetBlendShapesInfo_mDF8D7C1C1669D610ABC5D3730D43F3021A3DAEFD':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22071: undefined reference to
GetBlendShapesInfo'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function ARKitFaceTrackingConfiguration_IsARKitFaceTrackingConfigurationSupported_m021C73A4F853ED9BE3F12B39F9359B0F2DCAFFC1':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22796: undefined reference to
IsARKitFaceTrackingConfigurationSupported'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function ARKitSessionConfiguration_IsARKitSessionConfigurationSupported_m602D22E80E9F7C9298F33A6C793AA0A5E8273404':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22904: undefined reference to
IsARKitSessionConfigurationSupported'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function ARKitWorldTrackingSessionConfiguration_IsARKitWorldTrackingSessionConfigurationSupported_m85822706C5A69E6BD00F38F399D266B4891362A5':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:23022: undefined reference to
IsARKitWorldTrackingSessionConfigurationSupported'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_unity_CreateNativeARSession_m3D2ED1AE30EFF9F371A40D380626B8768BB0A5FC':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26739: undefined reference to
unity_CreateNativeARSession'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_session_SetSessionCallbacks_mB5CD2ACB31F311107032782F58C261EB34C826A0':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26770: undefined reference to
session_SetSessionCallbacks'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_session_SetPlaneAnchorCallbacks_mEB4992CF14098FC212E0DCA6CECE7F744E407607':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26792: undefined reference to
session_SetPlaneAnchorCallbacks'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_session_SetUserAnchorCallbacks_m3DB2B9EBF9A858879703266030B359166027EE2A':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26814: undefined reference to
session_SetUserAnchorCallbacks'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_session_SetFaceAnchorCallbacks_m972B9D08E75C3FAD2D89072DE268736CB2582627':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26836: undefined reference to
session_SetFaceAnchorCallbacks'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartWorldTrackingSession_m07695486857C97F816C2BC93B20873A59C444068':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26852: undefined reference to
StartWorldTrackingSession'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartWorldTrackingSessionWithOptions_m31C822CC1F5BF313C1F3D63B7974A8AC4D94836D':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26871: undefined reference to
StartWorldTrackingSessionWithOptions'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartSession_m709F01A2AFA3D0C239C70377477ADB1AEEFF598E':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26890: undefined reference to
StartSession'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartSessionWithOptions_m12B545B1397F86DFEBB03BD2384ABEAAF8A4983F':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26909: undefined reference to
StartSessionWithOptions'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartFaceTrackingSession_m994AF0416DA54AD7AC268AC6AB2DF882E19999C6':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26928: undefined reference to
StartFaceTrackingSession'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_StartFaceTrackingSessionWithOptions_m1589D526D8457F4D2F663B88C2848F392F31024E':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26947: undefined reference to
StartFaceTrackingSessionWithOptions'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_PauseSession_m7AE10640944D156CD1BCEE0698E4343E8EC5ADAE':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26960: undefined reference to
PauseSession'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_HitTest_m48F7D0E2B211592549E4339DD72862425DFA49E9':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26970: undefined reference to
HitTest'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_GetLastHitTestResult_m577AA98E3D9847D19D6EB99114B489BBAFA9E3DD':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26983: undefined reference to
GetLastHitTestResult'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_GetVideoTextureHandles_m6BFFD6A9B0C363855A7F1ECADBBB29132771BCB3':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27002: undefined reference to
GetVideoTextureHandles'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_GetAmbientIntensity_m7AB3BE1531B9BCDACB389842A585B4153C4F3D6D':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27013: undefined reference to
GetAmbientIntensity'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_GetTrackingQuality_mBF54D267206C30976EB7B098D5982F48AEE8E20B':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27024: undefined reference to
GetTrackingQuality'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_GetARPointCloud_m5329B6314EE934C374E3CBB93386ACBC6E967868':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27035: undefined reference to
GetARPointCloud'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_SetCameraNearFar_m7F109E103BF37CBCD020BB97078EC2A4F4239671':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27046: undefined reference to
SetCameraNearFar'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_CapturePixelData_mD366F50AF72EC129B4459D6F34AF097A27266228':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27056: undefined reference to
CapturePixelData'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_SessionAddUserAnchor_m6D6596147730F802F526B587D9F7E834C1BF6C65':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27066: undefined reference to
SessionAddUserAnchor'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function UnityARSessionNativeInterface_SessionRemoveUserAnchor_mB86A1574F32C8EE603520AD66F922C6698925043':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27081: undefined reference to
SessionRemoveUserAnchor'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
at il2cpp.Program.DoRun(String[ ] args)
at il2cpp.Program.Run(String[ ] args)
at il2cpp.Program.Main(String[ ] args)
stderr:

Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: /Users/edgar/Documents/Android/sdk/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ @"/var/folders/6p/dxc_jlwd2l393k8vy276c5qm0000gn/T/tmpxA6B8I.tmp" -o "/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/linkresult_3E858CC160B437F63F52FFA04E1B3B6B/libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/platforms/android-21/arch-arm64" -gcc-toolchain "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64" -target aarch64-none-linux-android -Wl,--wrap,sigaction -L "/Users/edgar/Documents/Android/sdk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a" -lgnustl_static -llog -rdynamic -fuse-ld=bfd

/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function ARFaceAnchor_GetBlendShapesInfo_mDF8D7C1C1669D610ABC5D3730D43F3021A3DAEFD':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22071: undefined reference to
GetBlendShapesInfo'
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B2AD1C80E4077FC521C33B2D538580A9.o: In function `ARKitFaceTrackingConfiguration_IsARKitFaceTrackingConfigurationSupported_m021C73A4F853ED9BE3F12B39F9359B0F2DCAFFC1':
/Users/edgar/Documents/Scape/_ProjectStash/Unity/YetAnotherTest/Temp/StagingArea/Il2Cpp

Found the workaround by when compiling for android remove all arkit structure from the folder. Seems like ARkit has forgotten to check if Android or if IOS.

For additional information can look here:

https://github.com/mapbox/mapbox-unity-sdk/issues/1315

it fails i didn't download mapbox!, i dont have any Arkit references