iOS Project Configuration

Bundle ID

Set iOS Bundle ID in Player Settings. Bundle ID should be same with the one when creating License Key

../_images/image_8.png

Target Architecture

Turn on IL2CPP in Player Settings, and set architecture to be Universal or arm64

../_images/image_13.png

Permissions

Add Camera permission. It can be set in Unity Player Settings

../_images/image_9.png

If not set in the Unity, you can also set it in the XCode project created in later steps

../_images/image_9_1.png

Generate XCode Project

Click Build button in Build Settings to generate XCode project. Build and run cannot be used because there are more configurations to set in XCode project.

../_images/image_601.png

Turn Off Bitcode

EasyAR Sense do not support bitcode, it should be turned off in XCode Build Settings

../_images/image_12.png

Add Framework

Part of EasyAR Sense would use ARKit, add ARKit Framework in XCode settings.

../_images/image_111.png ../_images/image_11_1.png

Set ARKit as Optional in the settings if running on system version that do not support ARKit is desired. The place of setting may vary from different XCode versions.

../_images/image_11_2.png

If you are using Unity 2020.2 or later, you need to add OpenGLES Framework manually, or replace Assets/Plugins/iOS/easyar.framework with iOS/arm64_fat_static/easyar.framework from the EasyAR Sense NR package.

Special Configurations for Video Recording

If you need to use video recording feature, set Graphics API to OpenGL ES 2.0

../_images/image_15.png

And add microphone permission, you can add it in Unity,

../_images/image_10.png

or in the generated XCode project

../_images/image_10_1.png