Skip to main content

Integration Steps

Step 1: Add SPAvatarKit Framework

  1. Download the SPAvatarKit.xcframework
  2. Open your Xcode project
  3. Drag and drop SPAvatarKit.xcframework into your project navigator
  4. In the dialog that appears, ensure “Copy items if needed” is checked
  5. Click “Finish”

Step 2: Add Resources Bundle

  1. Locate SPAvatarKit.xcframework/ios-arm64/SPAvatarKit.framework/Resources directory
  2. Drag and drop SPAvatarKitResources.bundle into your Xcode project
  3. Ensure “Copy items if needed” is checked and your target is selected

Step 3: Configure Framework Embedding

  1. Select your project in the Project Navigator
  2. Select your app target
  3. Go to the “General” tab
  4. Scroll down to “Frameworks, Libraries, and Embedded Content”
  5. Find SPAvatarKit.xcframework in the list
  6. Set the embed option to “Do Not Embed”

Step 4: Configure Linker Flags

  1. Select your project in the Project Navigator
  2. Select your app target
  3. Go to the “Build Settings” tab
  4. Search for “Other Linker Flags”
  5. Add the following flags:
    • -ObjC
    • -lc++