Skip to main contentIntegration Steps
Step 1: Add SPAvatarKit Framework
- Download the
SPAvatarKit.xcframework
- Open your Xcode project
- Drag and drop
SPAvatarKit.xcframework into your project navigator
- In the dialog that appears, ensure “Copy items if needed” is checked
- Click “Finish”
Step 2: Add Resources Bundle
- Locate
SPAvatarKit.xcframework/ios-arm64/SPAvatarKit.framework/Resources directory
- Drag and drop
SPAvatarKitResources.bundle into your Xcode project
- Ensure “Copy items if needed” is checked and your target is selected
- Select your project in the Project Navigator
- Select your app target
- Go to the “General” tab
- Scroll down to “Frameworks, Libraries, and Embedded Content”
- Find
SPAvatarKit.xcframework in the list
- Set the embed option to “Do Not Embed”
- Select your project in the Project Navigator
- Select your app target
- Go to the “Build Settings” tab
- Search for “Other Linker Flags”
- Add the following flags: