准备工作
步骤1:设置密钥
使用 xcode 打开下载好的 Demo 工程文件,在 HomeViewController 的 SECRET_ID 和 SECRET_KEY 中填入您的专属密钥。
![20200616110337](https://qcloudimg.tencent-cloud.cn/image/document/45914cef363336c756d1c62bdae0f71a.png)
![20200616110337](https://qcloudimg.tencent-cloud.cn/image/document/45914cef363336c756d1c62bdae0f71a.png)
步骤2:更改 Bundle ID
找到 TARGETS -> General ->Identity,将其中 Bundle Identifier 的内容修改为申请密钥时填写的 iOS Bundle id。
![](https://qcloudimg.tencent-cloud.cn/image/document/c20133e06c60dd76bd3e68b9bfd0a526.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/c20133e06c60dd76bd3e68b9bfd0a526.png)
步骤3:更改 Development Team
找到 TARGETS -> Build Settings ->Signing,将其中 Development Team 的内容修改为申请密钥时填写的 iOS DEVELOPMENT_TEAM。
![](https://qcloudimg.tencent-cloud.cn/image/document/a3124b00f73937101aa889df7eaf487a.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/a3124b00f73937101aa889df7eaf487a.png)