Cannot initialize a parameter of type ‘NSArray> *’ with an rvalue of type ‘NSArray *’

React-Native iOS application compilation errors in XCode 12.5 update

Error: Cannot initialize a parameter of type 'NSArray> *' with an rvalue of type 'NSArray *'

Solution:

Replace
(NSArray> *)modules
with
(NSArray *)modules