Navigate back to the homepage

Build failed after update Xcode 12.5

Xcode, React Native
June 1st, 2021 · 1 min read

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

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

Follow me on Twitter

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.

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]

Guide book

Guidebook: The Javascript Monorepo Photoshop Guide



More articles from Infinitbility

React native SVG

how to use svg in react native

May 15th, 2021 · 1 min read

React native autocomplete

how to add autocomplete in react native

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