Run iOS Sample Application
Environment Requirements
- iOS Version:
iOS 12.0and above - Development Language:
Objective-C - Architecture Support:
arm64
Get Sample Source Code
Clone the GitHub repository locally, navigate to the ios/demo/FBExampleObjc directory, and open the Xcode project.
bash
# clone
git clone https://github.com/pixpark/facebetter-demo.gitDownload the latest iOS version library from the SDK Download page and place it in the project directory ios/demo/FBExampleObjc/libs.
Configure Application Information and Keys
Bind Application Bundle ID
Follow the instructions on this page to bind your iOS application Bundle ID in the console, for example: com.example.app
Get AppID and AppKey
Follow the instructions on this page to get your appid and appkey. Open ViewController.m in the project and modify the appid and appkey.
objc
FBEngineConfig *engineConfig = [[FBEngineConfig alloc] init];
engineConfig.appId = @"your appId";
engineConfig.appKey = @"your appkey";
// Optional: If licenseJson is provided, license data verification takes priority, appId and appKey are not required
// engineConfig.licenseJson = @"your license json string";
self.beautyEffectEngine = [FBBeautyEffectEngine createEngineWithConfig:engineConfig];Run the Project
Open the ios/demo/FBExampleObjc/FBExampleObjc.xcodeproj project.
Ensure Xcode project signing is correct

Ensure the
Facebetterlibrary is properly linked
Build and run
Select a physical device and click the build and run button.