Going in circles: "Multiple commands produce..." error is solved with "pod install --repo-update" but then React-Codegen missing shadow nodes appears.

This issue has been created since 2022-09-20.

Description

Ok, so I'm going through the setup process for React Native Firebase and everything is working fine on Android. On iOS, after adding all the configurations I get a bunch of errors as follows:

Screenshot 2022-09-20 at 9 36 08 AM

So I got into the ios directory and solve it by running a pod install --repo-update. I go back to Xcode to build on the simulator and I get React Codegen error saying missing shadow nodes.

Screenshot 2022-09-20 at 9 27 56 AM

I return to my iOS folder and run RCT_NEW_ARCH_ENABLED=1 bundle exec pod install and that fixes the shadow nodes error but the Multiple commands produce... returns.

What is the proper way to handle these errors? Right now I'm just going in circles trying to fix both errors.

Version

0.70.1

Output of npx react-native info

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Max
    Memory: 423.63 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.9.0 - /opt/homebrew/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 8.19.1 - /opt/homebrew/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/vikrampal/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 14.0/14A309 - /usr/bin/xcodebuild
  Languages:
    Java: 18.0.2 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

The steps to reproduce are described above.

Snack, code example, screenshot, or link to a repository

In regards to me setting up Firebase, here are those files:

Podfile - I commented out Flipper as the docs recommended.

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

$RNFirebaseAsStaticFramework = true

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

target 'MyApp' do
  config = use_native_modules!
  use_frameworks! :linkage => :static

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming versions of React Native may rely on get_default_flags(), but
    # we make it explicit here to aid in the React Native upgrade process.
    :hermes_enabled => true,
    :fabric_enabled => flags[:fabric_enabled],
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    # :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'MyAppTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

cortinico wrote this answer on 2022-09-20

Ok, so I'm going through the setup process for React Native Firebase and everything is working fine on Android. On iOS, after adding all the configurations I get a bunch of errors as follows:

I would suggest you open this issue against React Native Firebase. @mikehardy would be more this happy to support you over there 👍 Thanks

mikehardy wrote this answer on 2022-09-20

Read the comments in this script, run it, and examine the podfile that results: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh

Start to finish + fully working react-native-firebase demo, debug + release, iOS + macCatalyst, with Hermes on react-native 0.70.1

Cheers

MyPalVikram wrote this answer on 2022-09-20

Worked like a charm! Thank you so much.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
WebSocketSimpleClient example on tag/v2.0.0-RC10 1 2022-08-03 2022-09-22
BUG: `service/auth`.`GetUserInfo` not response the right user avatar. 1 2022-08-05 2022-08-25
Use UseServiceProviderFactory or IControllerActivator? 14 2021-02-04 2022-09-20
Container.GetRegistration<T>() fails with cast exception 1 2021-02-04 2022-07-29
[BUG] quadpy.t3 does not integrate Constant functions 9 2021-10-03 2022-08-15
I am having this same setup issue but on Debian. Not sure where to look for the file/directory that resolved his issue. 3 2021-06-07 2022-09-29
Can't seem to run jfa-go under a certain user 4 2021-06-12 2022-07-21
uwot 0.1.8 doesn't install on MacOS 10.14.6 6 2020-03-17 2022-08-02
Feature Request: Add ability to record voice hands-free (voice memo) 1 2021-12-25 2022-09-25
Push releases to production, push prereleases to beta channels 0 2021-12-25 2022-09-25
Support for synchronization using the browser's synchronization feature (Feature Request) 1 2022-09-07 2022-09-29
Shitpost module 0 2021-01-10 2021-12-22
Port IndieAuth backend to mi 0 2021-01-10 2022-06-30
Is it possible to use this library in an Angular project? 0 2021-05-11 2022-09-24
Get-SFTPChildItem 3 2022-01-19 2022-01-15
uploadImageMedia(filepath) 方法如果filepath传递的是buffer类型,调用该快捷方法则少了filename参数 2 2021-01-13 2022-10-01
[误杀] gleam 被误杀 3 2021-07-29 2022-01-16
[误杀] 被反屏蔽前端识别 2 2021-07-17 2022-01-23
hello-world example should direct users on how to fulfill prerequisites 1 2021-03-10 2022-09-18
Vendor ssl.match_hostname to avoid Python 3.10 deprecation warning 11 2021-10-01 2022-08-26
limactl start <instance> can not work when reboot system 15 2021-09-12 2022-09-18
SSL - haproxy exposes certificate with different dates 5 2022-05-16 2022-08-05
Invalidate split_cookies client-side 0 2021-10-02 2022-10-05
Wisdom Shaders causes a crash or don't work (works with optifine) 4 2021-11-06 2022-09-27
GenC: incorrect use of copy instead of reference when binding values (with `if` expressions) 0 2022-06-07 2022-09-15
OrderBy fails to work, without it works well. 4 2021-06-28 2022-09-23
Investigate buggy auto cleaning 1 2022-09-06 2022-10-06
`error()` is a large proportion of our runtime size 0 2021-12-06 2022-01-12
[4.x]: Error while creating a new Shipping rule with particular parameters 3 2022-05-24 2022-09-19
[bitnami/redis-cluster] The real number of master nodes is incorrect after adding redis cluster nodes and replicas 2 2022-02-28 2022-08-30
可否再打包一个非alpine系统的镜像,运行alpine镜像的容器无法执行宿主机的docker命令 0 2021-11-23 2022-09-15
RGBA calc error when change alpha 2 2021-11-07 2022-09-25
pytest-asyncio with singletons causes conflicting event loops 2 2020-10-09 2022-10-01
Cleaner way to submit/cancel documents via REST 6 2021-11-02 2022-08-05
[Event Request] codeunit 5780 "Whse. Cross-Dock Management" - OnInsertCrossDockOppOnBeforeCrossDockOpp 1 2021-10-25 2022-09-23
Surelog submodule points to a wrong repo 1 2021-11-25 2022-09-22
Earlgrey design is not complete 3 2021-11-22 2022-09-24
Update CakeContrib.Guidelines 1 2021-03-19 2022-07-09
Update GitReleaseManager configuration 1 2021-03-12 2022-07-09
CodeQL show a warning on every run 1 2021-03-19 2022-07-09
Add cake-addin tag to Cake.ExtendedNuGet NuGet package 1 2021-03-12 2022-03-04
CVE-2020-10968 (High) detected in jackson-databind-2.6.6.jar 0 2020-03-30 2022-09-29
Build error while running android.sh on project root directory 0 2021-06-23 2022-08-16
consider about extend alternative log protocols 2 2022-03-01 2022-09-29
[QUESTION] Views on DynamoDBs? 3 2021-09-13 2022-08-25
License Agreement for MS Visual Studio Data Collection Opt out link is dead 2 2022-01-13 2022-09-18
[Bug] - The Manual Menace - Jenkins Part 7, step 2 should state to click "OK" 0 2019-09-24 2022-08-30
Would this dockerfile also work for the stable branch? 0 2022-08-30 2022-09-08
Reproduce the results 2 2021-11-19 2022-08-10
Error: Symbol's Value as variable is void: count 1 2021-03-10 2022-09-27