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.

1

1 Answer 1

6

Change RCTCxxBridge.mm 624 line

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

to

Code Block Objective-C
NSArray<Class> *)modules
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.