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 `FlipperKit (~> 0.30.0)`

See original GitHub issue

🐛 Bug Report

Been trying to install Flipper followed instructions given by getting started guide. End up facing issue [!] Unable to find a specification for FlipperKit (~> 0.30.0)``

What I’ve tried:

Tried the following to by pass Unable to find FlipperKit issue

pod 'FlipperKit', :git => 'https://github.com/facebook/flipper.git', :branch => 'master', :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitLayoutPlugin', :git => 'https://github.com/facebook/flipper.git', :branch => 'master', :configuration => 'Debug'
  pod 'FlipperKit/SKIOSNetworkPlugin', :git => 'https://github.com/facebook/flipper.git', :branch => 'master', :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitUserDefaultsPlugin', :git => 'https://github.com/facebook/flipper.git', :branch => 'master', :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitReactPlugin', :git => 'https://github.com/facebook/flipper.git', :branch => 'master', :configuration => 'Debug'

Result in [!] Unable to find a specification for YogaKit (~> 1.18)depended upon byFlipperKit/FlipperKitLayoutPlugin`` Just to point out, I have replaced the following:

# pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Replace the existing yoga import with the following (adding modular_headers):
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true

To Reproduce

Having the following code in Podfile

def flipper_pods()
  flipperkit_version = '0.30.0'
  pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
  pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug'

end

# Post Install processing for Flipper
def flipper_post_install(installer)
  installer.pods_project.targets.each do |target|
    if target.name == 'YogaKit'
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.1'
      end
    end
  end
  file_name = Dir.glob("*.xcodeproj")[0]
  app_project = Xcodeproj::Project.open(file_name)
  app_project.native_targets.each do |target|
    target.build_configurations.each do |config|
      cflags = config.build_settings['OTHER_CFLAGS'] || '$(inherited) '
      unless cflags.include? '-DFB_SONARKIT_ENABLED=1'
        cflags << '-DFB_SONARKIT_ENABLED=1'
      end
      config.build_settings['OTHER_CFLAGS'] = cflags
    end
    app_project.save
  end
  installer.pods_project.save
end

Run pod install

Expected Behavior

Pod should install successfully

Environment

Running on Flipper Desktop Version 0.30.0 React Native Info

System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
    Memory: 495.95 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.12.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-24 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom_64
      Android NDK: 19.2.5345600
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.0 => 0.61.0 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
priteshrnandgaonkarcommented, Apr 16, 2020

@Luftzig, can you try running pod install --repo-update. Let us know if the issue still persists.

1reaction
mweststratecommented, Jan 16, 2020

We are working on standardizing this integration, bypassing the whole process. But in the mean time please use the older version in the RN configuration as described here: https://github.com/facebook/flipper/blob/master/docs/getting-started.md#ios. Despite the warning you will get, newer Flipper Desktop versions are compatible with older SDK versions on the devices. , so the warnings can be safely ignored for now, until we have standardized this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - Unable to find a specification for `YogaKit
Here I'm facing issue while trying to integrate Flipper in my project. Followed the instructions given by getting started guide.
Read more >
FlipperKit on CocoaPods.org
Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and, recently, even JS apps in your browser or...
Read more >
Flipper Unable To Find A Specification For Flipperkit 0300
End up facing issue [!] Unable to find a specification for FlipperKit (~> 0.30.0) while running pod install. I tried an alternative way...
Read more >
target has transitive dependencies that include statically ...
But when I execute the pod install I get the following error: ... transitive dependencies for FlipperKit pods # to avoid them being...
Read more >
React Native - Manual iOS Setup - Flipper
pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug' end # Post Install processing for Flipper
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