Search Unity

Question ARKit + IL2CPP build failed

Discussion in 'AR' started by iliasM, Feb 16, 2022.

  1. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    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:
    --->>>

    1. DO NOT USE the default AR Controller script that is default in Mapbox (disable it)
    2. Update the latest Unity ARcore SDK
    3. At AR Root - use AR Core Session Script as the new AR Controller (comes with latest Unity ARCore SDK)
    4. AR Camera - Use Track Pose Driver for tracking movement, AR Core Background Renderer for rendering camera view (comes with latest UnityARCore SDK)
    5. Graphics API - OpenGLES2, OpenGLES3 both works
    6. 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
    <------
     
  2. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
  3. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
  4. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324