Skip to main content

Environment Requirements

  • macOS Version: macOS 10.14 and above
  • Development Language: Objective-C
  • Architecture Support: x86_64, arm64 (Apple Silicon)

Get Sample Source Code

Clone the GitHub repository locally, and navigate to the demo/macos directory.
Xcode 15+ Compilation Error HandlingIf you are using Xcode 15 or later, you might encounter a Sandbox: rsync.samba deny(1) error during compilation. This is caused by Xcode’s default User Script Sandboxing being enabled.Solution:
  1. Select your Project in Xcode.
  2. Navigate to the Build Settings tab.
  3. Search for ENABLE_USER_SCRIPT_SANDBOXING.
  4. Change its value from Yes to No.

Configure Application Information and Keys

Bind Application Bundle ID

Follow the instructions on this page to bind your macOS 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.
licenseJson takes priority over appId + appKey. For offline download and details, see License & Auth.

Run the Project

Open demo/macos/FBExampleObjc.xcworkspace
  1. Ensure Xcode project signing is correct
  1. Ensure network permissions are enabled for appkey validation
  1. Build and run
Select target device (Mac or Simulator) and click the build and run button.