-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS crash when Recognizer.init('xxxxxxx') #31
Comments
Have you solved the problem, please? I have a problem like you. |
我也一样的问题,请问解决了吗? |
安装、链接后还须进行下面两步(以 Example 工程为例): 在 讯飞开放平台 下载组合服务 SDK (选择语音听写与在线语音合成),分别下载 Android 与 iOS 平台 SDK。 替换 SDK 文件: 使用下载 Android SDK 的 Android_voice_xxxx_xxxxxxxx/libs 文件夹替换 Example/node_modules/react-native-speech-iflytek/android/libs 文件夹; 在 XCode 中打开 Example/ios/YourProject.xcodeproj; 这里的第二步不要做,估计是官方最新的framework有问题 |
你测试 成功了? @xll503721 |
不替换ios SDK 运行成功后识别的时候不报错吗?登录失效? |
|
我把logging.cc的这段方法给注释掉了,然后项目就可以跑了。。。 |
@AAAAAAFei 这样不太好吧!我试下把不符合要求的都转成 0 if (severity < 0 || severity >= NUM_SEVERITIES) {
severity = 0;
} |
@weizheng1992 我是测试过成功才这么说的 |
@xll503721 不替换framework,识别时会报登录失效,只要是新下载的sdk,就汇报那个错。assert(severity >= 0 && severity < NUM_SEVERITIES); |
@helloshuang 我的不会,我是有试过登录报错,但是是因为reload的问题,只要每次都程序重装就可以了,实际用户也不会reload的。 |
向讯飞提了工单,回答如下:
按照 http://bbs.xfyun.cn/forum.php?mod=viewthread&tid=39423 的回答,需要开启 bitcode。我的工程不能开启 bitcode,所以放弃了 |
react-native: 0.55.2
react-native-speech-iflytek: 1.0.3
xcode: 9.3
xcode 报错:
Assertion failed: (severity >= 0 && severity < NUM_SEVERITIES), function SetLogDestination, file MyProject/node_modules/react-native/third-party/glog-0.3.4/src/logging.cc, line 595.
logging.cc:
`
`
@zphhhhh 能帮忙看一下这个问题么
The text was updated successfully, but these errors were encountered: