Skip to content

React Native Pod Install Static #51491

Closed
Closed
@livestream-ad

Description

@livestream-ad

Description

I was developing a mobile application for my website,LiveStream, using React Native. While implementing push notifications with RNFirebase, I encountered errors during pod installations. After extensive research, I was able to resolve the issue by adding the following lines to the Podfile:

else
  use_frameworks! :linkage => :static
end
$RNFirebaseAsStaticFramework = true

This solution does not disrupt the structure of React Native at all, and even if Firebase is not installed, the pods work perfectly fine. I would like to offer a suggestion: what do you think about publishing the Podfile with this configuration by default?

Steps to reproduce

PodError

React Native Version

0.76.2

Affected Platforms

Build - MacOS

Output of npx @react-native-community/cli info

PodError

Stacktrace or Logs

PodError

MANDATORY Reproducer

https://github.com/livestream-ad/germanytv

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions