question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@bugsnag/react-native - v7.17.1 error when running pod install (iOS)

See original GitHub issue

Describe the bug

Installing CocoaPods on a React Native project fails when using package version 7.17.1

It seems the release is missing files in directory packages/react-native/ios/vendor/bugsnag-cocoa.

Steps to reproduce

  1. Go to a standard React Native project.
  2. yarn add @bugsnag/react-native@7.17.1
  3. cd ios && pod install

Environment

  • Bugsnag version: 7.17.1

Workaround

  • Downgrade to previous version
    • With yarn yarn add @bugsnag/react-native@7.17.0
    • Or update package.json to use "7.17.0" and reinstall modules
Error messages:
[!] Invalid `Podfile` file:
[!] Invalid `BugsnagReactNative.podspec` file: No such file or directory @ rb_sysopen - /Users/xxx/Projects/xxx/node_modules/@bugsnag/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.podspec.json.

 #  from /Users/xxx/Projects/xxx/node_modules/@bugsnag/react-native/BugsnagReactNative.podspec:3
 #  -------------------------------------------
 #  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
 >  bugsnag_cocoa_podspec = JSON.parse(File.read(File.join(__dir__, "ios", "vendor", "bugsnag-cocoa", "Bugsnag.podspec.json")))
 #  bugsnag_cocoa_public_header_files = bugsnag_cocoa_podspec["public_header_files"]
 #  -------------------------------------------
.

 #  from /Users/xxx/Projects/xxx/ios/Podfile:20
 #  -------------------------------------------
 #    end
 >    config = use_native_modules!
 #    use_react_native!(:path => config["reactNativePath"])

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
luke-beltoncommented, Jun 29, 2022

Hi @stawecki - thanks for reporting this, we’re investigating and will keep you updated on this thread.

2reactions
swrobelcommented, Jun 29, 2022

FWIW 7.17.0 doesn’t have any issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error running pod install: How to solve this problem?
run this code on the terminal sudo arch -x86_64 gem install ffi. Next, go to the ios folder in your project, and open...
Read more >
How to fix Flutter stuck at “running pod install…” when running ...
Open the terminal, go to ios folder directory and run Pod install . ... How to fix Flutter + Xcode error database is...
Read more >
Installation | React Native Navigation - Open Source
After the the automatic scripts completed successfully, run pod install: ... .h and .m files in Xcode as the IDE will usually point...
Read more >
pod install hangs indefinitely with no errors - Google Groups
I installed cocoapods, but having issues using it in the project. I also explained the issue on stack overflow, but haven't gotten any ......
Read more >
Issues with Pod Install related to EXCLUDED_ARCHS
When I run pod install I get the following error: [!] Can't merge user_target_xcconfig for pod targets: ["Intercom", "NewRelicAgent"].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found