I had to change from Mono to IL2CPP for building in arm64 archtecture on Android platform.
I use Mapbox, ARCore, UnityARInterface and ARkit.
I found that the ARkit causes errors at the build. The only solution thath I found is to remove ARkit and some UnityARinterface files related to ARKit.
I managed to build after the apove steps but I have issues regarding the 3D models in the 3D world.
Is there any way to keep ARKit in the project and build with IL2CPP???
Here are the steps that I have followed:
—>>>
- DO NOT USE the default AR Controller script that is default in Mapbox (disable it)
- Update the latest Unity ARcore SDK
- At AR Root - use AR Core Session Script as the new AR Controller (comes with latest Unity ARCore SDK)
- AR Camera - Use Track Pose Driver for tracking movement, AR Core Background Renderer for rendering camera view (comes with latest UnityARCore SDK)
- Graphics API - OpenGLES2, OpenGLES3 both works
- Make sure you have a 64 bit libarcore_camera_utility
** lemme know if it works for you**
**SOLUTION for Mapbox/ARCore/64Bit/IL2CPP) - to fix build errors
And while waiting for Devedse’s awesome ARKit update to fix the 64bit IL2CPP build errors, you can do this
Hi, while we wait for the AR Kit fix. you can do this
delete UnityARKitPlugin folder delete UnityARInterface/ARRemote folder 3)delete UnityARInterface/Examples/ARFocusSquare folder 4)delete UnityARInterface/Scripts/ARKitinterface.cs build again…
** to reverse these steps, import the mapbox-unity-sdk_v2.1.1 again
<------