Hello Friends 👋,

Welcome To Infinitbility! ❤️

This article help you to solve **Build failed after update Xcode 12.5 beta Cannot initialize a parameter of type ‘NSArray> ’ with an rvalue of type ‘NSArray and no matching function for call to ‘rctbridgemodule name for class’ problems getting after update xcode to 12.5.

Let’s start today topic Build failed after update Xcode 12.5

This isssue is resolved when you update react native version but if you want to solve on your current version then you have add below code on your Podfile.

I had two issues, these replaces did the job:

post_install do |installer|
    ## Fix for XCode 12.5
    "_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")
        "RCTBridgeModuleNameForClass(module))", "RCTBridgeModuleNameForClass(Class(module)))")
  • Add below code on your end of Podfile
def find_and_replace(dir, findstr, replacestr)
  Dir[dir].each do |name|
      text = File.read(name)
      replace = text.gsub(findstr,replacestr)
      if text != replace
          puts "Fix: " + name
          File.open(name, "w") { |file| file.puts replace }
  Dir[dir + '*/'].each(&method(:find_and_replace))
  • Go to terminal and run pod install

Thanks for reading…

May be you are looking for it

React native application release testing using xcode

how to add background mode in xcode

how to run react native project in xcode

How to debug swift code in react native xcode

Build failed after update Xcode 12.5

Archive uploading error to App Store using Xcode

How to open Archive build list in Xcode