Navigate back to the homepage

Build failed after update Xcode 12.5

Xcode, React Native
June 1st, 2021 · 1 min read
Build failed after update Xcode 12.5

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:

1post_install do |installer|
2 ## Fix for XCode 12.5
3 find_and_replace("../node_modules/react-native/React/CxxBridge/",
4 "_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")
5 find_and_replace("../node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/",
6 "RCTBridgeModuleNameForClass(module))", "RCTBridgeModuleNameForClass(Class(module)))")
  • Add below code on your end of Podfile
1def find_and_replace(dir, findstr, replacestr)
2 Dir[dir].each do |name|
3 text =
4 replace = text.gsub(findstr,replacestr)
5 if text != replace
6 puts "Fix: " + name
7, "w") { |file| file.puts replace }
8 STDOUT.flush
9 end
10 end
11 Dir[dir + '*/'].each(&method(:find_and_replace))
  • Go to terminal and run pod install

Subscribe Our Newsletter for the weekly update.

May be you are looking for it

  1. React native application release testing using xcode
  2. how to add background mode in xcode
  3. how to run react native project in xcode
  4. How to debug swift code in react native xcode
  5. Build failed after update Xcode 12.5
  6. Archive uploading error to App Store using Xcode
  7. How to open Archive build list in Xcode

Looking For React Native Tutorial?

we are trying to create the best Tutorial for react native developers.

When you want a daily updates about React Native Tutorial or infinitbility update subscribe to our newsletter.

Read React Native Tutorial

Request New Tutorial or Article on mail [email protected]

Join our email list and get notified about new content

No worries, I respect your privacy and I will never abuse your email.

Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.


React Native


More articles from Infinitbility

React native SVG

React native SVG

how to use svg in react native

May 15th, 2021 · 1 min read
React native autocomplete

React native autocomplete

how to add autocomplete in react native

May 14th, 2021 · 1 min read
© 2020–2021 Infinitbility
Link to $ to $ to $ to $ to $ to $mailto:[email protected]