We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xcode11打包后闪退,启动报错;xcode每次升级都会出幺蛾子,习惯就好
报错为
Unknown argument type 'attribute' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type.
这个BUG是Xcode.11引起的, 可以查看这个问题的提交记录,链接为:facebook/react-native#25138
我们只需要找到 RCTModuleMethod.mm 这个文件,大约在93行左右
文件是在node_modules/react-native/React/base/RCTModuleMethod.mm 这个位置,
在Xcode可以直接搜索 RCTModuleMethod. 这个文件,
修改
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") ||
RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "attribute((unused))");
}
这个函数插入 RCTReadString(input, "attribute((unused))") || 这行代码重新运行就行了。
这样项目就能启动了,而且打包的app也不会闪退了。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
xcode11打包后闪退,启动报错;xcode每次升级都会出幺蛾子,习惯就好
报错为
Unknown argument type 'attribute' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type.
这个BUG是Xcode.11引起的, 可以查看这个问题的提交记录,链接为:facebook/react-native#25138
我们只需要找到 RCTModuleMethod.mm 这个文件,大约在93行左右
文件是在node_modules/react-native/React/base/RCTModuleMethod.mm 这个位置,
在Xcode可以直接搜索 RCTModuleMethod. 这个文件,
修改
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") ||
RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "attribute((unused))");
}
这个函数插入 RCTReadString(input, "attribute((unused))") || 这行代码重新运行就行了。
这样项目就能启动了,而且打包的app也不会闪退了。
The text was updated successfully, but these errors were encountered: