9

My react native app previously built and ran on a simulator in xcode 11. However since upgrading to xcode 12.5 I get the following build errors

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'

These errors come from react-core which is in my project via cocoapods.

MarvoloPoet
  • 99
  • 1
  • 4

1 Answers1

5

Change RCTCxxBridge.mm 624 line

Code Block Objective-C
NSArray<id<RCTBridgeModule>> *)modules

to

Code Block Objective-C
NSArray<Class> *)modules
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Patrick Muhire
  • 384
  • 3
  • 6