skills/developer.tuya.com/integrating-tuya-ios-bizbundle-framework

integrating-tuya-ios-bizbundle-framework

Installation
SKILL.md

概述 {#description}

涂鸦 UI 业务包(BizBundle)的通用框架层初始化。所有具体 BizBundle(设备控制、家庭管理等)的共同前置条件,必须先完成本 skill 再集成任何具体业务包。

适用场景 {#scene}

已完成 integrating-tuya-ios-sdk(ThingSmartHomeKit 可用,AppDelegate 已完成 SDK 基础初始化),需要接入任意 BizBundle 之前执行。

步骤:

  1. Podfile 添加 BizBundle 基础依赖:加入 ThingSmartBizCoreThingModuleServices;具体业务包按需单独引入;执行 pod update。详见 references/framework-setup.md

  2. 创建 thing_custom_config.json:在工程根目录(与 Podfile 同级)创建配置文件,填写 appIdthingAppKeyappSchemehotspotPrefixsneedBle 及主题色。详见 references/framework-setup.md

  3. SceneDelegate 中初始化 BizBundle(Scene 架构必须):在 scene:willConnectToSession:options: 里,先完成 [self.window makeKeyAndVisible],再依次调用:

    • [ThingSmartBusinessExtensionConfig setupConfig]
    • [[ThingSmartBizCore sharedInstance] registerRouteWithHandler:]

    不可在 AppDelegate 或 makeKeyAndVisible 之前调用,否则触发死锁崩溃。详见 references/framework-setup.md

Installs
7
First Seen
May 21, 2026
integrating-tuya-ios-bizbundle-framework from developer.tuya.com