The specific Xcode output log is as follows:
*** Terminating app due to uncaught exception 'ThingSmartSDKException', reason: 'Domain config file not found!'
terminating with uncaught exception of type NSException
t_cdc.tcfg does not exist.
Your project does not include a domain configuration file. To use a custom domain name, please go to the Thing IoT Development Platform and download a domain configuration file.
read local domain config : (null)
*** Terminating app due to uncaught exception 'ThingSmartSDKException', reason: 'Domain config file not found!’
Reason: The Smart Life 5.0+ SDK was not correctly integrated.
Solution:
1. If you have already integrated an earlier version of the SDK, after updating to the 5.0 SDK, please delete the t_s.bmp safety image file in the project, and obtain the new 5.0 version AppKey, secretKey from the Tuya IoT Development Platform.
2. Refer to Integrating SDK in step 5 and step 6: Unzip ios_core_sdk.tar.gz to obtain the following two important file information: - Build: Holds your app-specific security SDK, it's as important as the app key information, please keep it safe, prevent resource leaks or public exposure.
- ThingSmartCryption.podspec: Used for reference and integration with the 5.0 SDK.
(Recommended) Keep these two files at the same level as the podfile for easy referencing in subsequent operations.