问题1
bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js
解决方案 卸载Node环境,重新安装
参考链接:https://juejin.im/post/5c09e47ee51d45721d71087d
问题2
更新Xcode11后报错
Unknown argument type 'attribute' in method
解决方案 在iOS源码中添加一行代码
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}
参考链接 : https://github.com/facebook/react-native/pull/25146/files