facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.3k stars 954 forks source link

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

Open liamjones opened 1 year ago

liamjones commented 1 year ago

🐛 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

Gerlison commented 1 year ago

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

liamjones commented 1 year ago

@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 commented 1 year ago

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).

Gerlison commented 1 year ago

@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.

markholland commented 1 year ago

Seeing the same problem. Sticking with 0.175.0

kepop1 commented 1 year ago

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 🤷

Gerlison commented 1 year ago

@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. :)

lundn commented 1 year ago

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

nikoden-io commented 1 year ago

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

notjosh commented 1 year ago

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

adamsinnott commented 1 year ago

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 commented 1 year ago

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: Thepublic_header_filespattern did not match any file.

lblasa commented 1 year ago

Sorry about this, looking into it now.

lblasa commented 1 year ago

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

adamsinnott commented 1 year ago

Fantastic thank you

Hmoulvad commented 1 year ago

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

Rohindh-R commented 1 year ago

Still facing the same issue in 0.190.0

miguelherz commented 1 year ago

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

therealkh commented 1 year ago

the same here for 0.190.0

williamwa commented 1 year ago

same problem 0.190.0

miguelherz commented 1 year ago

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

soulei-dev commented 1 year ago

the same here for 0.190.0

same

lethanhan97 commented 9 months ago

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

VittoriDavide commented 7 months ago

someone still facing this with 0.201 ?

ankitbajpai1607 commented 5 months ago

yes

someone still facing this with 0.201 ?

yes

deepen168 commented 5 months ago

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

paulopgss commented 5 months ago

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

eusouoviana commented 5 months ago

This still happens to me

mobinahmed commented 5 months ago

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

sachittt commented 5 months ago
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.

stargt commented 5 months ago

Same here. I finally applied the temp fix as @sachittt did.

Check also:

Gopinath-22-PS commented 5 months ago

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 , You saved my time!

Gopinath-22-PS commented 5 months ago

Same here. I finally applied the temp fix as @sachittt did.

Check also:

@stargt , I tried but none of them is working.

owencraston commented 5 months ago

I am also getting this error on the latest version of xcode 15.3 (15E204a)

stargt commented 5 months ago

@Gopinath-22-PS Yeah, it was my misunderstanding, I've finally disabled Flipper after I found an article that says Flipper is about to be deprecated.

Gopinath-22-PS commented 5 months ago

@owencraston try adding #include in ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h

abhibhat33 commented 5 months ago

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.

Yeah, thanks @sachittt it's working fine. Is this issue fixed in new RN version?

liamjones commented 5 months ago

@abhibhat33 Looks like it's fixed in these versions: