Skip to content

Add SohaGame SDK to Xcode project

Prerequisites

  • Install the following: Xcode 26 or later
  • Make sure that your project meets these requirements:
    • iOS 15
  • Set up a physical Apple device run your app.

Important — Add the Privacy Manifest

As part of SDK installation, you must add the PrivacyInfo.xcprivacy file provided by SohaGame to your app target. Follow Step 4: Add Privacy Manifest below.

Download and install the SDK

Step 1: Download

The SDK is distributed as a static framework, so you need to manually download the SDK and 3rd party dependency frameworks, then add it to your Xcode project. The SDK requires the following 3rd party dependency frameworks:

  • Firebase
  • Facebook
  • Google SignIn
  • Adjust
  • MobileId

Note

Please get the SDK and demo app download links from the project info Excel file that SohaGame has sent you.

Step 2: Unzip

Unzip all the .zip files you just downloaded.

Step 3: Import in project

Warning

Do not embed these XCFrameworks. These XCFrameworks must be set to Do Not Embed.

  1. Drag the SohaSDK.xcframework and all folder of dependent frameworks, drop it into your Xcode project. In the dialog box that appears, make sure the target you want the framework to be added to has a checkmark next to it, and that you've selected "Copy items if needed".

  2. Add the -ObjC flag to Other Linker Settings:

    a. In your project settings, open the Settings panel for your target.

    b. Go to the Build Settings tab and find the Other Linker Flags setting in the Linking section.

    c. Double-click the setting, click the '+' button, then add -ObjC Add the -ObjC flag

Step 4: Add Privacy Manifest

SohaGame provides a PrivacyInfo.xcprivacy file to add to your Xcode project. For background, see Apple's privacy manifest documentation.

  1. Download the PrivacyInfo.xcprivacy file.
  2. Drag PrivacyInfo.xcprivacy into your Xcode project.
  3. In the import dialog, select Copy items if needed and make sure your app target is checked.

Add the privacy manifest file