iOS Compilation Error ARCore

[disregard]

Hi,

First off a big thanks to everyone at Unity working on ARCore and ARKit - you have all done an amazing job!!

We are working on a project for both ARCore and ARKit and are trying to use the same project for both versions. Everything compiles fine for the ARCore (Android) version, but if I try and use the same project to build for iOS I get the error attached below (Unity 2017.2.0b10 on OSX)

I'm guessing it may have something to do with the GoogleAR.UnityNative plugin which is set to target any platform?

Anyway, for now we just delete all the Google ARCore stuff to build the iOS version, but it would be great if they could play nicely together in the next update. Cheers!

Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe --api=NET_2_0_Subset -out="/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/tempStrip" -l=none -c=link --link-symbols -x="/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f="/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/UnityEngine.xml" -x "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AR.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Accessibility.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Animation.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Audio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Cloth.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/CrashReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Director.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/GameCenter.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Grid.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/IMGUI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ImageConversion.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Input.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/JSONSerialize.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticleSystem.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticlesLegacy.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/PerformanceReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics2D.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ScreenCapture.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/SpriteMask.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/StyleSheets.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Terrain.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TerrainPhysics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TextRendering.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Tilemap.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UIElements.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UNET.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityAnalytics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityConnect.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequest.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestAudio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestTexture.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestWWW.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/VR.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Vehicles.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Video.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Web.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Wind.xml" -d "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed" -a "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a "/Users/simonedis/Documents/Unity5Projects/Beer Pong - Android/Temp/StagingArea/Data/Managed/UnityEngine.SpatialTracking.dll"

stdout:
Fatal error in Unity CIL Linker
Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.XR.Tango.TangoInputTracking
at UnityLinker.AddUnresolvedStubsStep.Process () [0x000b2] in <45d6c350b6254bd09f03f35ad7e3bea6>:0
at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00018] in <09bca01fd71241c7a07af8c71eb6ae1a>:0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00020] in <09bca01fd71241c7a07af8c71eb6ae1a>:0
at UnityLinker.UnityDriver.Run () [0x00086] in <45d6c350b6254bd09f03f35ad7e3bea6>:0
at UnityLinker.UnityDriver.RunDriverWithoutErrorHandling () [0x00001] in <45d6c350b6254bd09f03f35ad7e3bea6>:0
at UnityLinker.UnityDriver.RunDriver () [0x00002] in <45d6c350b6254bd09f03f35ad7e3bea6>:0
stderr:

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable
1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[ ], String[ ], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[ ], String[ ], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:204)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action
1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

Super late to this thread, but that's actually an issue with ARCore in 2017.2b10, rather than the fact that you're on iOS. Try 2017.2b11 or f1 instead.

Cheers,
Tim