Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid RNFBAnalytics.podspec file: No such file or directory @ rb_sysopen - ../app/package.json. #4101

Closed
mossen opened this issue Aug 18, 2020 · 6 comments

Comments

@mossen
Copy link

mossen commented Aug 18, 2020

Running following command:
user@192-168-1-109 ios % pod install --repo-update

getting this:

[!] Invalid Podfile file:
[!] Invalid RNFBAnalytics.podspec file: No such file or directory @ rb_sysopen - ../app/package.json.

from ShelemCounter/node_modules/@react-native-firebase/analytics/RNFBAnalytics.podspec:3

package = JSON.parse(File.read(File.join(dir, 'package.json')))

appPackage = JSON.parse(File.read(File.join('..', 'app', 'package.json')))

Running:
"@react-native-firebase/analytics": "^7.4.2",
"react": "16.13.1",
"react-native": "0.63.2",

@mikehardy
Copy link
Collaborator

The installation instructions indicate the app module is required, it will work if you install it

@IrynaBt
Copy link

IrynaBt commented Apr 17, 2021

You should to add @react-native-firebase/app, so run

yarn add @react-native-firebase/app

@lauhon
Copy link

lauhon commented Feb 17, 2023

Unrelated to this project, but:

This error also occurs when organizing a react-native project with yarn workspaces. To fix it add the react_native_path option to react_native_post_install

  react_native_post_install(
      installer,
      react_native_path = "../../../node_modules/react-native",
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )

Im commenting this here because this thread is ranked high on google, best case it saves somebody time in the future 😄

@vinitsood
Copy link

Im commenting this here because this thread is ranked high on google, best case it saves somebody time in the future 😄

This helped me! Thanks for sharing it @lauhon

@Kawaljeet-AUI
Copy link

Unrelated to this project, but:

This error also occurs when organizing a react-native project with yarn workspaces. To fix it add the react_native_path option to react_native_post_install

  react_native_post_install(
      installer,
      react_native_path = "../../../node_modules/react-native",
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )

Im commenting this here because this thread is ranked high on google, best case it saves somebody time in the future 😄

Future saved. Mission successful!

@Kaveh-ap
Copy link

Unrelated to this project, but:

This error also occurs when organizing a react-native project with yarn workspaces. To fix it add the react_native_path option to react_native_post_install

  react_native_post_install(
      installer,
      react_native_path = "../../../node_modules/react-native",
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )

Im commenting this here because this thread is ranked high on google, best case it saves somebody time in the future 😄

I was facing this issue, and the problem was related to react_native_path!
Thanks = )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants