Skip to content
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

适配的时候出的错误,问题都在这里了。 #33

Open
xll503721 opened this issue Aug 5, 2018 · 7 comments
Open

适配的时候出的错误,问题都在这里了。 #33

xll503721 opened this issue Aug 5, 2018 · 7 comments

Comments

@xll503721
Copy link

xll503721 commented Aug 5, 2018

按照README步骤,出现'iflyMSC/IFlyMSC.h' file not found,多次拖拉framework无效。

@xll503721 xll503721 changed the title 按照README步骤,出现not found 按照README步骤,出现'iflyMSC/IFlyMSC.h' file not found Aug 5, 2018
@xll503721 xll503721 changed the title 按照README步骤,出现'iflyMSC/IFlyMSC.h' file not found 适配的时候出的错误,问题都在这里了。 Aug 6, 2018
@xll503721
Copy link
Author

问题:iflytek.framework not found

肯定是没有把iflytek.framework copy进去了。确保一下,你当前ios/目录下有iflytek.framework,没有就肯定找不到了,因为Xcode找framework的路径是ios/下的。
要注意的是,就算你拖iflytek.framework 去项目的拖入 Project navigator 的 Frameworks的时候有勾选Copy items if needed也没用,Xcode有时候就是不会去copy,所以导致ios/目录下还是没有,你自己手动把iflytek.framework进去吧。如下图

image

要不然的话就改一下Xcode搜索Framework的路径,去Building Settings搜索Framework Search Paths,添加一项$(SRCROOT)/../node_modules/react-native-speech-iflytek/ios/libs,让Xcode去这个路径找就肯定有了。如下图:
image

@xll503721
Copy link
Author

问题: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.

这个问题,不要替换最新的iflytek.framework,反正我是直接用npm下来的iflytek.framework就好了,如果替换成官方最新iflytek.framework就会报这个错,感觉是官方最新版本的有问题,我也不知道,反正试了就是这样。

@helloshuang
Copy link

我也遇到了这个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.我试试你的方法。你有遇到Android reload之后不能识别的问题吗

@helloshuang
Copy link

不替换的话会报登录失败的错误

@xll503721
Copy link
Author

@helloshuang 你的reload了吧,你每次重新安装app运行

@cheneywan
Copy link

@xll503721

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.

这个问题我也遇到了,如果不替换自己从官网下载的 iflytek.framework,那么你的 APPID 和 npm 下载下来的 iflytek.framework 不对应,就会报登录失败,解决办法有两种:

1、注释这个报错方法里所有语句
2、联系讯飞技术人员,他会给你一个上个版本的 SDK,这个 SDK 是与你 APPID 对应的

@ksti
Copy link

ksti commented Mar 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants