我正在克隆一个项目:
The steps are:
- NPI
- 本机链接react
当我运行它react-native run-ios
时,RCTWebSocket
库有问题.这个问题很容易解决,如果你搜索一点,只需要删除2个编译器标志,在Custom Compiler Flags
.
稍后,我再次运行react-native run-ios
并正常工作,但当应用程序打开时,显示下一个错误:
在搜索中,我发现这与upgrade
source here有关
但我用的是那个命令,不起作用.
当执行此命令时,它开始向我显示对某些文件的一些重写,在该过程结束时,问题仍然存在.
我的react 信息:
react-native-cli: 1.0.0
react-native: 0.32.1
我跑Xcode 8
和ios 10.0
PDTA:当我开始一个新项目时,效果会很好
UPDATES:
当克隆在另一台mac上运行时,我会确保xcode和node的版本相同.
可能是mac电脑的配置问题吗?
The only difference between the 2 macs is the cli version:
`react-native-cli: 1.1.0` --> my mac
`react-native-cli: 1.2.0` --> the other mac
Will this be enough to cause all this problem?