Table of Contents

Run EasyAR iOS samples

This article introduces how to run native iOS samples provided by EasyAR. Using HelloAR as an example, it explains how to run the sample. Other samples can be referenced similarly.

Preparations

  • Before starting, ensure the following environment is ready:

    • Xcode 16 or later
    • iPhone or iPad physical device with ARM64 CPU
  • Download EasyAR Sense native samples and unzip

  • Obtain License Key from EasyAR Developer Center (CN Site / EN Site). Ensure the package name matches the sample, e.g., cn.easyar.samples.helloar for HelloAR.

Import and compile the sample

  1. Open the downloaded and unzipped sample with Xcode, e.g., helloar.xcodeproj

    openiossample

  2. Set the license (License Key)

    Locate ViewController.m according to the path, and fill in the License Key obtained from the Developer Center as prompted by the code.

    xcodefillkey

  3. Compile and run

    Connect your phone to the computer, click the run button, and follow prompts to run the sample on iPhone/iPad.

    HelloAR implements image recognition and tracking on planar surfaces while overlaying virtual objects. Aim the camera at the target image (found in the assets folder) to experience the effect.

    namecard