1.1. Quick integration
1.1.1. Use CocoaPods integration
Add the following code to the Podfile file:
source "https://github.com/TuyaInc/TYPublicSpecs.git"
source 'https://cdn.cocoapods.org/'
platform: ios, '9.0'
target 'TuyaSmartCameraPanelSDK_Example' do
pod 'TuyaSmartCameraPanelSDK'
pod 'TuyaSmartHomeKit'
pod "TuyaSmartPanelSDK"
end
Then execute the pod update command in the project root directory to integrate third-party libraries.
Please refer to the use of CocoaPods: CocoaPods Guides
1.2. Project configuration
In the corresponding Target, select Build Settings, search for Enable Bitcode, and set it to NO.
1.3. Integration SDK
1.3.1. Header file import
Objective-C projects are added where needed
#import <TuyaSmartCameraPanelSDK/TuyaSmartCameraPanelSDK.h>
Swift Please add the following to the xxx_Bridging-Header.h bridge file
#import <TuyaSmartCameraPanelSDK/TuyaSmartCameraPanelSDK.h>
Then add it where the project needs to be used
import TuyaSmartCameraPanelSDK