我的react原生应用程序之前在Xcode11中的模拟器上构建和运行。
Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an rvalue of type 'NSArray<Class>*'
Cannot initialize a parameter of type 'NSArray<Class> *' with an lvalue of type 'NSArray<id<RCTBridgeModule>> *__strong'
Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an lvalue of type 'NSArray<Class> *__strong'这些错误来自react-core,它通过cocoapods在我的项目中。
发布于 2021-06-26 02:47:48
更改RCTCxxBridge.mm 624行
Code Block Objective-C
NSArray<id<RCTBridgeModule>> *)modules至
Code Block Objective-C
NSArray<Class> *)moduleshttps://stackoverflow.com/questions/67314866
复制相似问题