gpt4 book ai didi

ios - Affdex iOS SDK "set the licensePath property with a valid file path"错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:54:09 26 4
gpt4 key购买 nike

使用 iOS SDK,我尝试像这样设置许可证 token :

#ifndef YOUR_AFFDEX_LICENSE_STRING_GOES_HERE
#define YOUR_AFFDEX_LICENSE_STRING_GOES_HERE @"090b118356d7c6afc08b6b58763...snip...56ade05a27c71c80f221"
#endif

但是当我尝试运行您的 AffdexMe 演示时,它说

Detector Error. No license provided.

最佳答案

设置宏时,您需要使用从 Affectiva 收到的 SDK 许可证文件的内容。当您检查许可证文件的内容时,您会看到如下所示的 JSON 字符串:

{"token": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "licensor": "Affectiva Inc.", "expires": "2019-04-15", "developerId": "dev@mycompany.com", "software": "Affdex SDK"}

相应地设置宏:

#define YOUR_AFFDEX_LICENSE_STRING_GOES_HERE {\"token\": \"1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef\", \"licensor\": \"Affectiva Inc.\", \"expires\": \"2019-04-15\", \"developerId\": \"dev@mycompany.com\", \"software\": \"Affdex SDK\"}

请注意,使用反斜杠字符转义每个双引号字符很重要,这样 C 预处理器就不会混淆。

关于ios - Affdex iOS SDK "set the licensePath property with a valid file path"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36138602/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com