简体   繁体   中英

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

在此处输入图像描述

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.

Seems like this is a problem with react native 0.69.1. The workaround ( as detailed here ) is to disable bitcode in xcode settings: 在此处输入图像描述

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: 在此处输入图像描述

Make sure to comment out flipper as well

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM