阿里云智能语音交互iOS接入FAQ
ld: 'xxx/NlsClientSDK.framework/NlsClientSDK(NlsRecognizer.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
- 解决1 : 打开项目-targets-build settings-Enable Bitcode-设置为No。
- 问题2 : Assertion failed。
- 解决2 : 检查在开始语音识别前,是否注册appkey;检查NlsRecognizer初始化时svcURL是否为nil。
//Config appkey.
[NlsRecognizer configureAppKey:@"your_appkey"];
NlsRecognizer *r = [[NlsRecognizer alloc] initWithNlsRequest:nlsRequest svcURL:nil];
{
NSLocalizedDescription = "server closed connection, code:4400, reason:illegal params, operation forbidden, wasClean:1";
}
- 解决3 : 检查appkey是否为空,填写正确的appkey。
#warning 请修改为您在阿里云申请的APP_KEY
[nlsRequest setAppkey:@"your_appkey"]; // requested