Been trying to install Flipper followed instructions given by getting started guide. End up facing issue [!] Unable to find a specification forFlipperKit (~> 0.30.0)``
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 forYogaKit (~> 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
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
Pod should install successfully
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
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.
@mweststrate's link has changed, it is now here: https://github.com/facebook/flipper/blob/master/docs/getting-started/react-native-ios.md
I've tried following these instructions, but it still doesn't work. The error is
[!] Unable to find a specification for `FlipperKit (~> 0.37.0)`
@Luftzig, can you try running pod install --repo-update. Let us know if the issue still persists.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Most helpful comment
@Luftzig, can you try running
pod install --repo-update. Let us know if the issue still persists.