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.

Pod installation problem in react-native 0.24.1

See original GitHub issue

Got the following error message:

[!] Invalid `React.podspec` file: no implicit conversion of nil into String.

 #  from /Users/Public/Projects/pall/node_modules/react-native/React.podspec:3
 #  -------------------------------------------
 #  
 >  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
 #  
 #  -------------------------------------------
 ✘ user@macbookpro  /Users/Public/Project/pall/ios  

It’s no problem in 0.23

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
zh-wowtvcommented, Apr 23, 2016

@mikefowler Thanks. I did:

  • Upgrade ruby from 2.1.2 to 2.3.0
  • Upgrade react-native from 0.24.0 to 0.25-rc
  • Upgrade cocoapods

gem install cocoapods --pre

  • Reset pod

pod repo remove master pod setup pod install

Everything’s fine then.

3reactions
mikefowlercommented, Apr 22, 2016

Verified that this is still occurring (on my machine) with 0.25-rc.

A short-term workaround is to change __dir__ to File.dirname(__FILE__), but my Ruby knowledge ends there.

Edit: my suspicion is that this has to do with the Ruby version being used locally by CocoaPods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix “pod install” error in React Native on Mac M1
How to fix “pod install” error in React Native on Mac M1 · sudo gem install cocoapods. to install cocoapods , the standard...
Read more >
How can I fix pod install error in react-native? - Stack Overflow
Error : react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps: • If you are using CocoaPods on iOS, run ...
Read more >
React-native-simple-device-info - npm.io
Simple Device Information for React Native. This is a fork of react-native-device-info - we removed some of the methods that were potentially causing...
Read more >
react-native-device-info/README.md - UNPKG
# It removes React & Yoga from the Pods project, as it is already included in the main project. 138, targets_to_ignore = %w(React...
Read more >
react-native-maps | Yarn - Package Manager
This project is being maintained by a small group of people, and any help with issues and pull requests are always appreciated. If...
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