报错关键信息:
Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params
[RCTModuleMethod.mm:376] Unknown argument type '__attribute__' in method -[RCTLinkingManager getInitialURL:reject:]. Extend RCTConvert to support this type.
解决方法:
找到如下文件并进行替换
![](https://img.haomeiwen.com/i2093433/432f5097a2d6c6a8.png)
替换static BOOL RCTParseUnused(const char **input)
方法为
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}
参考:https://blog.csdn.net/kuangdacaikuang/article/details/94579312
网友评论