256
京東網上商城
阿裏雲智能語音交互iOS接入FAQ
阿裏雲智能語音交互iOS接入FAQ
- 問題1 : bitcode。
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];
- 問題3 : 錯誤碼4400。
{
NSLocalizedDescription = "server closed connection, code:4400, reason:illegal params, operation forbidden, wasClean:1";
}
- 解決3 : 檢查appkey是否為空,填寫正確的appkey。
#warning 請修改為您在阿裏雲申請的APP_KEY
[nlsRequest setAppkey:@"your_appkey"]; // requested
最後更新:2017-07-04 17:02:36