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.helloarfor HelloAR.
Import and compile the sample
Open the downloaded and unzipped sample with Xcode, e.g.,
helloar.xcodeproj
Set the license (License Key)
Locate
ViewController.maccording to the path, and fill in the License Key obtained from the Developer Center as prompted by the code.
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
assetsfolder) to experience the effect.