Closed stephane-archer closed 1 month ago
Is this warning normal? How can I fix it?
Hi @stephane-archer! This is the repo of the PostHog service, but the problems looks like a client library one. Are you perhaps using https://github.com/PostHog/posthog-flutter?
@Twixes you are right, thank you @timgl for transferring the issue
@stephane-archer thanks for raising this issue, https://github.com/PostHog/posthog-flutter/pull/105 should fix it
@marandaneto Thank you for fixing the issue :)
PS: a quick and dirty version of posthog.capture
for posthot-flutter
for Windows would be just great.
Found a few similar issues https://github.com/firebase/firebase-ios-sdk/issues/12511 https://github.com/airbnb/lottie-ios/issues/2297 But we don't add the file under the Sources folder so the fix isn't the same, its just a warning anyway, I will merge my PR and wait for your feedback Edit: released as https://pub.dev/packages/posthog_flutter/versions/4.5.0 (make sure to clean your podfile lock and pods)
> posthog_flutter 4.5.0 (was 4.4.1)
trash macos/Pods/ macos/Podfile.lock
warning: no rule to process file '/Users/fractale/CommercialProjects/video_proxy_generator/macos/Pods/PostHog/PostHog/Resources/PrivacyInfo.xcprivacy' of type 'text.xml' for architecture 'arm64' (in target 'PostHog' from project 'Pods')
warning: no rule to process file '/Users/fractale/CommercialProjects/video_proxy_generator/macos/Pods/PostHog/PostHog/Resources/PrivacyInfo.xcprivacy' of type 'text.xml' for architecture 'x86_64' (in target 'PostHog' from project 'Pods')
the problem doesn't seem to be solved
@marandaneto please re-open this issue
I am not entirely sure what causing this, maybe it's a macOS issue since it's not the case for iOS? ideas? everything seems to be configured correctly (based on official docs).
@marandaneto I have no idea. Do you have access to MacOS? I'm not sure how I can help you with this. Maybe you should open an issue on Flutter Git Hub? Their testing on MacOS is not always the best, the issue might not be on your side.
@marandaneto I have no idea. Do you have access to MacOS? I'm not sure how I can help you with this. Maybe you should open an issue on Flutter Git Hub? Their testing on MacOS is not always the best, the issue might not be on your side.
Yes, I do have a macOS and I can see the warnings on CI as well, will check if the warning appears without Flutter as well. , will give it another try later this week, as I mentioned, it is a warning and the build succeeded, so not a blocker for now I guess, thanks for testing it.
@marandaneto I'm glad you can reproduce the issue.
a warning is usually not created for no reason and makes the user wonder if they have configured Posthog correctly. It also makes the package look less professional, firebase is a joke when you compile your app and you see the number of warnings they create. You wonder if they know what they are doing.
So, it is not a deal breaker but I would not consider this as useless.
@marandaneto I'm glad you can reproduce the issue.
a warning is usually not created for no reason and makes the user wonder if they have configured Posthog correctly. It also makes the package look less professional, firebase is a joke when you compile your app and you see the number of warnings they create. You wonder if they know what they are doing.
So, it is not a deal breaker but I would not consider this as useless.
Totally agree :)
I also see that on our iOS build (iOS native SDK, no flutter):
- NOTE | xcodebuild: warning: no rule to process file 'PostHog/PostHog/Resources/PrivacyInfo.xcprivacy' of type 'text.xml' for architecture 'arm64' (in target 'PostHog' from project 'Pods') - NOTE | xcodebuild: warning: no rule to process file 'PostHog/PostHog/Resources/PrivacyInfo.xcprivacy' of type 'text.xml' for architecture 'x86_64' (in target 'PostHog' from project 'Pods') - NOTE | [watchOS] xcodebuild: warning: no rule to process file 'PostHog/PostHog/Resources/PrivacyInfo.xcprivacy' of type 'text.xml' for architecture 'i386' (in target 'PostHog' from project 'Pods')
So if there's something on our end, it's not on the Flutter SDK wrapper
I also get this warning when running https://github.com/PostHog/posthog-ios/tree/main/PostHogExampleWithPods
But if I generate a privacy report:
Everything is working correctly, it might be something with Pods or Xcode, but I don't see any difference between our setup and other libs.
Hopefully https://github.com/PostHog/posthog-ios/releases/tag/3.4.0 fixes it
@marandaneto Is it already available for users? can you tell me what version it is so I can test?
@stephane-archer 3.4.0 as linked above, if using flutter, you just have to upgrade your pods because the flutter dep always use the latest version 3.x.x
Pods version - PostHog (3.2.5)
I can still see this warning when building on Mac, please @marandaneto Re-open this issue
Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-x64, locale en-GB)
Please test it using 3.4.0 as requested.
if I delete macos/Pods/
and macos/Podfile.lock
this doesn't put PostHog (3.4.0), is there any commands for that?
posthog_flutter: ^4.0.0
@stephane-archer This is just pods caching, you can see here the latest version https://cocoapods.org/pods/PostHog Delete the pods folder, delete the lock file, update the repo (pod repo update), etc.
@marandaneto I was able to update the pods and I don't see the warning anymore. I'm confused about the fact that Pods and Flutter packages are independent, one does not force the other. Could you clarify why PostHog is not just a Flutter package and why it needs a Pod? I'm a bit confused about how packages and Pods are related and interact with each other.
@stephane-archer happy that it is fixed. this is how flutter packages work, https://docs.flutter.dev/packages-and-plugins/developing-packages
@marandaneto can you force a pod update when someone updates their flutter package?
Bug Description
Debug info
No response