Docs index: /llms.txt · every page as Markdown: add .md

‹ Platforms

Migrate from bitHumanKit

Move an iPhone, iPad or Mac app from retired bitHumanKit to Expression2 or Essence2Kit.

Swift package 3.0.0

bitHumanKit is retired and is no longer a product of the Swift package. Move your app to Expression2 or Essence2Kit, the two products that render the avatar on the device.

What replaces it

With bitHumanKitNow
the package’s old GitHub URL (github.com/bithuman-product/homebrew-bithuman)https://gitlab.com/bithuman/sdk/homebrew-bithuman (package identity homebrew-bithuman)
the bitHumanKit productthe Expression2 or Essence2Kit product
import bitHumanKitimport Expression2 or import Essence2Kit
config.apiKey on VoiceChatConfigExpression2Credential.set(secret) or Essence2Credential.set(secret), before you create an engine
iPhone 16 Pro or iPad Pro M4 or newer, plus two Apple memory entitlementsExpression 2: iOS 16 or macOS 13 or newer. Essence 2: iOS 26 or macOS 26 or newer. The engines need no entitlement

Pick Expression2 to animate any character from one portrait, or Essence2Kit for a photoreal person. The iOS & iPadOS page compares the two.

What the products do not include

bitHumanKit was a voice agent: VoiceChat listened, answered with a language model and spoke. Expression2 and Essence2Kit render the avatar only. You feed 16 kHz mono speech in and take lip-synced frames out.

Keep your own speech recognition, language model and speech synthesis, and pass each reply’s audio to the engine. VoiceChat, AvatarRendererView, HardwareCheck, ExpressionWeights and AgentCatalog have no counterpart. Every entry point the products do have is on the Swift reference.

Steps

8 steps

  1. 1. Remove the old product

    In Package.swift, delete the bitHumanKit product line from your target. In Xcode, open your target’s General → Frameworks, Libraries, and Embedded Content and remove bitHumanKit.

  2. 2. Point the package at its current URL

    If your project lists the package at its old GitHub URL, remove it under Project → Package Dependencies, then add it again with the current URL from the table above.

  3. 3. Add the product your app uses (Expression2 or Essence2Kit)

    The Xcode steps, the Package.swift line with the current version, and each product’s deployment target are under Install.

  4. 4. Replace the imports

    Change import bitHumanKit to import Expression2 or import Essence2Kit.

  5. 5. Set the credential

    Replace config.apiKey with Expression2Credential.set(secret) or Essence2Credential.set(secret) (Authenticate).

  6. 6. Render

    Replace the VoiceChat and AvatarRendererView code with the engine loop in Run your first avatar.

  7. 7. Remove what only bitHumanKit needed

    Delete the com.apple.developer.kernel.increased-memory-limit and com.apple.developer.kernel.extended-virtual-addressing entitlements, unless other code in your app needs them. Delete NSSpeechRecognitionUsageDescription unless your own code uses speech recognition. Keep NSMicrophoneUsageDescription if your app records the user.

  8. 8. Update and build

    Choose File → Packages → Update to Latest Package Versions in Xcode, or run swift package update, then build for a physical device.

Troubleshooting

SymptomCauseFix
The build fails with product 'bitHumanKit' not found in package 'homebrew-bithuman'a target still lists the retired productremove the product line (step 1)
No such module 'bitHumanKit'a source file still imports itchange the import (step 4)
Essence 2 does not start on an older iPhoneEssence 2 needs iOS 26 or neweruse Expression2 on that device

More fixes, by symptom, are on Swift troubleshooting.