报错信息:

Showing All Messages
: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.
Showing All Messages
The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.
解决方法:
1.根据报错信息,找到的解决方法:


2.执行上述操作后,继续报错:
Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an rvalue of type 'NSArray<Class> *'

3.上述的错误的解决方法:
将【RCTCxxBridge.mm】文件中的代码调整即可:
将
-(NSArray<RCTModuleData *> *)_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules
替换为:
-(NSArray<RCTModuleData *> *)_initializeModules:(NSArray<id> *)modules

网友评论