Open liamjones opened 1 year ago
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 Wait... You can only use the newest versions of flipper (e.g. 0.176.1) on older react-native (less than 0.69.0)? 😕
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 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.
Didnt build the ios to try it yet, actualy. But solved the issue of installing the pods for me.
Seeing the same problem. Sticking with 0.175.0
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 🤷
@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. :)
Any updates on this? Are the latest supported version of Flipper for React-Native v.0.159.0?
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
The CocoaPods publishing has failed for the last few versions (here), each of them after six (!) hours of trying.
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.
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_filespattern did not match any file.
Sorry about this, looking into it now.
Problem has been identified, a fix will be provided very shortly.
Fantastic thank you
What is the status on this? I am yet seeing this in the newest version 0.190.0 :(
Still facing the same issue in 0.190.0
Any update on version 0.190.0? Looks like there was a failed deployment two weeks ago.
the same here for 0.190.0
same problem 0.190.0
Version 0.191.0 was just released 2 hours ago.. but same issue with the pods.. it failed to publish flipper pod
the same here for 0.190.0
same
the same here for both 0.190.0 and 0.238.0. React-native version 0.70.13
someone still facing this with 0.201 ?
yes
someone still facing this with 0.201 ?
yes
Is there any updates or workaround for this? I am starting out with RN and stuck on this error. would really apreciate help. Thanks!
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:
This still happens to me
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
I was also facing same issue since yesterday. Finally able to resolve it.
I was able to find temp fix with adding #include
Same here. I finally applied the temp fix as @sachittt did.
Check also:
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!
Same here. I finally applied the temp fix as @sachittt did.
Check also:
- b3dcdb8
- macos 14.3.1 xcode 15.3 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer #5500 (comment)
- [Has Workaround] Upgrading Xcode to 15.3 results in build error -
Called object type 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer
react-native#43335 (comment)
@stargt , I tried but none of them is working.
I am also getting this error on the latest version of xcode 15.3 (15E204a)
@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.
@owencraston try adding #include
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?
@abhibhat33 Looks like it's fixed in these versions:
🐛 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:
Environment
RN 0.69.7 Flipper 0.176.1
Edit: also applies to the newly released 0.177.0