flipper icon indicating copy to clipboard operation
flipper copied to clipboard

FlipperKit cocoapod versions missing for latest releases (0.176.0, 0.176.1 & 0.177.0)

Open liamjones opened this issue 2 years ago • 38 comments

🐛 Bug Report

I was following the docs to update an RN app to use the latest version of Flipper: https://fbflipper.com/docs/getting-started/react-native/#using-the-latest-flipper-sdk

The docs list 0.176.1 in the instructions as the latest version, which is correct. However, while the maven artifact exists for 0.176.1, the FlipperKit cocoapod does not: https://cocoapods.org/pods/FlipperKit

To Reproduce

Set Flipper to 0.176.1 in an RN project:

    :flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.176.1' }),

Environment

RN 0.69.7 Flipper 0.176.1

Edit: also applies to the newly released 0.177.0

liamjones avatar Dec 14 '22 13:12 liamjones

image In the doc you linked, says that React Native >= 0.69 Flipper version has to be 0.159.0

You can use the latest version on the Android, and just refer to the Pod 0.159.0 on iOS

Gerlison avatar Dec 21 '22 14:12 Gerlison

@Gerlison Wait... You can only use the newest versions of flipper (e.g. 0.176.1) on older react-native (less than 0.69.0)? 😕

liamjones avatar Dec 21 '22 15:12 liamjones

This also seems to disagree with the statement above it on that page:

Latest version of Flipper requires react-native 0.69+! If you use react-native < 0.69.0, please, downgrade react-native-flipper to 0.162.0 (see this GitHub issue for details).

liamjones avatar Dec 21 '22 15:12 liamjones

@liamjones I just tried to install the newest version (0.176.1) on my project. Updated package.json and Podfile to that version. When I tried to pod install --repo-update, I got the same error as yours. Then, I downgraded Podfile version to the version indicated on the screenshot I sent you, but kept the latest on Android and package.json. image

Didnt build the ios to try it yet, actualy. But solved the issue of installing the pods for me.

Gerlison avatar Dec 21 '22 15:12 Gerlison

Seeing the same problem. Sticking with 0.175.0

markholland avatar Jan 04 '23 15:01 markholland

Same issue on my side. Running React Native 0.70.6 and Flipper 0.176.1 for iOS / Android. Android runs fine, no warnings, but iOS has the warning even with running the usual pod install --repo-update etc. This is with a fresh Podfile.lock being generated as well.

I wonder why https://cocoapods.org/pods/FlipperKit doesn't have the 0.176.1 version pushed to it?

Copy of the warning:

The native module for Flipper seems unavailable. Please verify that `react-native-flipper` is installed as yarn dependency to your project and, for iOS, that `pod install` is run in the `ios` directory.

For what it's worth, Flipper still works fine despite the warning 🤷

kepop1 avatar Jan 04 '23 16:01 kepop1

@markholland @kepop1 Despite this is only a warning and android is working fine, I faced some errors on iOS when using a version greater than 0.159.0. The main problem was the Network plugin. It stopped working on iOS. After I downgraded back to 0.159.0, the plugin was fixed.

If that doesn't apply to your projetcts, it's fine then. :)

Gerlison avatar Jan 04 '23 18:01 Gerlison

Any updates on this? Are the latest supported version of Flipper for React-Native v.0.159.0?

lundn avatar Jan 20 '23 12:01 lundn

Same issue for me, 0.176.0 is founded by Cocoapods but not the most recent updates.

EDIT: regarding the version number specidied for RN, there must be a typo as the maximum version for RN<=0.69 is 0.162.0 and you need RN 0.70+ for latest versions

nikoden-io avatar Jan 25 '23 12:01 nikoden-io

The CocoaPods publishing has failed for the last few versions (here), each of them after six (!) hours of trying.

notjosh avatar Jan 27 '23 14:01 notjosh

This is still an issue. There is no documentation showing this and finding why its not working is tricky and time consuming. Additionally 0.176.0 is not present. The latest package present is 0.175.0.

adamsinnott avatar Feb 15 '23 07:02 adamsinnott

Was a header removed by mistake?

ERROR | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: FlipperKit/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.mm:27:8: error: cannot find protocol declaration for 'RCMountable'; did you mean 'CKMountable'?

2023-02-10T23:54:53.9023160Z - ERROR | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: Returned an unsuccessful exit code. 2023-02-10T23:54:53.9024210Z - NOTE | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.1, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'RenderCore' from project 'Pods') 2023-02-10T23:54:53.9025190Z - WARN | [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: Headers/Private/RenderCore/CKVariant.h:354:9: warning: parameter '_' not found in the function declaration [-Wdocumentation] 2023-02-10T23:54:53.9026240Z - ERROR | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: FlipperKit/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.mm:26:8: error: cannot find protocol declaration for 'RCMountable'; did you mean 'CKMountable'? 2023-02-10T23:54:53.9027200Z - NOTE | [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: Headers/Private/ComponentKit/CKAnalyticsListener.h:23:11: note: 'CKMountable' declared here 2023-02-10T23:54:53.9028230Z - ERROR | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: FlipperKit/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.mm:27:8: error: cannot find protocol declaration for 'RCMountable'; did you mean 'CKMountable'? 2023-02-10T23:54:53.9029410Z - NOTE | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.1, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'ComponentKit' from project 'Pods') 2023-02-10T23:54:53.9030490Z - NOTE | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: warning: no rule to process file 'ComponentKit/ComponentKit/ComponentKit.xcconfig' of type 'text.xcconfig' for architecture 'arm64' (in target 'ComponentKit' from project 'Pods') 2023-02-10T23:54:53.9031540Z - NOTE | [iOS] [FlipperKit/FlipperKitLayoutComponentKitSupport] xcodebuild: warning: no rule to process file 'ComponentKit/ComponentKit/ComponentKit.xcconfig' of type 'text.xcconfig' for architecture 'x86_64' (in target 'ComponentKit' from project 'Pods') 2023-02-10T23:54:53.9032390Z - WARN | [FlipperKit/FlipperKitExamplePlugin,FlipperKit/FlipperKitReactPlugin] file patterns: The public_header_files pattern did not match any file.

adamsinnott avatar Feb 15 '23 07:02 adamsinnott

Sorry about this, looking into it now.

lblasa avatar Feb 15 '23 10:02 lblasa

Problem has been identified, a fix will be provided very shortly.

lblasa avatar Feb 15 '23 10:02 lblasa

Fantastic thank you

adamsinnott avatar Feb 15 '23 13:02 adamsinnott

What is the status on this? I am yet seeing this in the newest version 0.190.0 :(

Hmoulvad avatar May 03 '23 13:05 Hmoulvad

Still facing the same issue in 0.190.0

Rohindh-R avatar May 07 '23 17:05 Rohindh-R

Any update on version 0.190.0? Looks like there was a failed deployment two weeks ago.

miguelherz avatar May 12 '23 14:05 miguelherz

the same here for 0.190.0

therealkh avatar May 17 '23 12:05 therealkh

same problem 0.190.0

williamwa avatar May 18 '23 16:05 williamwa

Version 0.191.0 was just released 2 hours ago.. but same issue with the pods.. it failed to publish flipper pod

miguelherz avatar May 18 '23 18:05 miguelherz

the same here for 0.190.0

same

soulei-dev avatar Jun 03 '23 18:06 soulei-dev

the same here for both 0.190.0 and 0.238.0. React-native version 0.70.13

lethanhan97 avatar Nov 16 '23 07:11 lethanhan97

someone still facing this with 0.201 ?

VittoriDavide avatar Jan 25 '24 21:01 VittoriDavide

yes

someone still facing this with 0.201 ?

yes

ankitbajpai1607 avatar Mar 01 '24 17:03 ankitbajpai1607

Is there any updates or workaround for this? I am starting out with RN and stuck on this error. would really apreciate help. Thanks!

deepen168 avatar Mar 07 '24 00:03 deepen168

After updating my xcode I had the same problem using version 0.125.0. Searching other topics, I found one that worked for me, I hope it helps:

#43335

paulopgss avatar Mar 07 '24 01:03 paulopgss

This still happens to me

eusouoviana avatar Mar 07 '24 19:03 eusouoviana

I had the same issue with 0.201, you can try updating your pods. This resolved issue for me ~> pod update (under ios folder) Mac OS M1 Sonoma 14.3.1 Xcode 15.3 React-Native 0.73.5

Flipper deprecated moving forward https://github.com/react-native-community/discussions-and-proposals/pull/641

mobinahmed avatar Mar 07 '24 19:03 mobinahmed

Screenshot 2024-03-08 at 4 26 45 PM I was also facing same issue since yesterday. Finally able to resolve it.

I was able to find temp fix with adding #include to ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h may be an flipper needs an upgrade.

sachittt avatar Mar 08 '24 10:03 sachittt