Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native IOS Xcode build failing for bitcode

I am new to React Native. I am trying to build my app on my ios device. It is building fine in the emulator but whenever I try to do it on my ios device I am getting the following error (picture attached).

It used to build regularly on ios device. It stopped working after I installed firebase to it following the documentation,

https://rnfirebase.io/#3-ios-setup

enter image description here

Not sure but it might be a flipper issue with static libraries? But really struglling here on this for a few days. I even tried enabling and disabling the bitcode option in build setting and still the same error.

like image 953
thatonenerd Avatar asked Jun 01 '26 20:06

thatonenerd


1 Answers

Seems like this is a problem with react native 0.69.1. The workaround (as detailed here) is to disable bitcode in xcode settings: enter image description here

Then add the following to post_install in your podfile:

installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
end

It should look like this: enter image description here

Make sure to comment out flipper as well

Finally run pod install in the iOS directory

like image 122
Bubba Avatar answered Jun 04 '26 09:06

Bubba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!