Run EasyAR iOS Samples
This article explains how to run the native iOS samples provided by EasyAR. Here, we use HelloAR as an example to demonstrate how to run the sample. Other samples can be referenced similarly.
Preparation
Before starting, ensure the following environment is ready:
- Xcode 16 or later
- An iPhone or iPad with an ARM64 CPU
Download the EasyAR Sense native samples and extract them
Obtain a License Key from the EasyAR Developer Center (Chinese site / English site). Note that the package name must match the sample, e.g., HelloAR uses
cn.easyar.samples.helloar.
Import and compile the sample
Open the downloaded and extracted sample in Xcode, e.g.,
helloar.xcodeproj
Set the license (License Key)
Locate
ViewController.mand fill in the License Key obtained from the Developer Center as prompted in the code.
Compile and run
Connect your phone to the computer and click the run button. Follow the prompts to run the sample on your iPhone/iPad.
HelloAR implements image recognition and tracking on flat surfaces, overlaying virtual objects. Point the camera at the target image (which can also be found in the
assetsfolder) to experience the effect.