Integration
- Manual
- Swift Package Manager
- CocoaPods
Integrate AvatarKit.xcframework into your Xcode project manually.
1
Download AvatarKit.xcframework
Download the latest version of AvatarKit.xcframework
2
Add AvatarKit.xcframework
- Copy
AvatarKit.xcframeworkinto your project directory - In the navigator, select your project -> your target -> General
- Scroll to Frameworks, Libraries, and Embedded Content
- Drag
AvatarKit.xcframeworkinto item list - Ensure
AvatarKit.xcframeworkis set to Do Not Embed
3
Configure Build Settings
- In the navigator, select your project -> your target -> Build Settings
- Add the following to Other Linker Flags:
-lz&-lc++
4
Add Run Script Phase
- In the navigator, select your project -> your target -> Build Phases
- Click the
+button and select New Run Script Phase - Add the following script:
Usage
- SDK Driving Service Mode
- Host Driving Service Mode
Obtain app ID and temporary session token from Open Platform
1
Initialize SDK
2
Provide Session Token
3
Load Avatar
4
Create Avatar View
5
Register Callbacks
6
Drive Avatar

