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.

Unable to find a specification for 'boost-for-react-native' depended upon by `Folly`

See original GitHub issue

I get the error: Unable to find a specification for 'boost-for-react-native' depended upon by 'Folly' when running pod install

I am creating a Podfile that is identical to the one specified in the docs here

I can see that boost-for-react-native was introduced because of this issue here.

This is the commit that is adding boost-react-native and most-likely causing this error for me. I am not that familiar with podspecs and the specifics of the dependencies of boost vs boost-for-react native, but I’m pretty sure this is the cause.

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS High Sierra 10.13.3 Node: 8.9.3 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.7.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: Not Found

Packages: (wanted => installed) react: 16.2.0 => 16.2.0 react-native: 0.53.3 => 0.53.3

CocaPods version 1.3.1 React Native CLI: 2.0.1

Steps to Reproduce

  1. From CLI: react-native init Temp
  2. Create a new file: ios/Podfile with the following contents:
platform :ios, '9.0'

# Remove this line to see the warnings that happen when calling 'pod install'.
# Refer to this issue: https://github.com/CocoaPods/CocoaPods/issues/4370
install! 'cocoapods', :deterministic_uuids => false

target 'Temp' do

  # Dependencies for react native firebase. Refer to this documentation:
  # https://rnfirebase.io/docs/v2.2.*/installation-ios#2.1)-Add-the-required-pods
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
  ]

  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'TempTests' do
    inherit! :search_paths
  end

end
  1. cd /path/to/repo/ios && pod install

Expected Behavior

Cocoa pods installs all the dependencies without any errors.

Actual Behavior

screen shot 2018-02-25 at 11 49 19 am

Reproducible Demo

Here is the repo with the bug.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:13

github_iconTop GitHub Comments

65reactions
zhantxcommented, Mar 7, 2018

do a pod update first

16reactions
milawoaicommented, Feb 28, 2018

add " pod ‘boost-for-react-native’ " into Podfile , It fix my problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to find a specification for `boost-for-react-native ...
I found the next steps, it worked me well. Delete the project. Delete the next folder (cd /Users/test/.cocoapods); Clone the project again.
Read more >
pod install error - "Unable to find a specification for `React ...
Coding example for the question pod install error - "Unable to find a specification for `React-RCTActionSheet` depended upon by `RNReanimated`"
Read more >
Flipper-Folly on CocoaPods.org
We endeavor to remove things from folly if or when std or Boost obsoletes them. ... User code should not depend on symbols...
Read more >
ios/Podfile.lock · master · RocketChat / Rocket.Chat.ReactNative
Podfile.lock ; 141. - DoubleConversion ; 142. - fmt (~> 6.2.1) ; 143. - glog ; 144. - RCT-Folly/Futures (2021.06.28.00-v2): ; 145. -...
Read more >
Troubleshooting - React Native
CocoaPods and Node Reset​ · Run pod deintegrate in your ios directory (or wherever your Podfile is located) and re-run pod install (or...
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