PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
69 stars 36 forks source link

'View' is only available in iOS 13.0 or newer on posthog-react-native 3.3.5 #289

Closed MDSADABWASIM closed 1 month ago

MDSADABWASIM commented 1 month ago

Bug description

Please describe. With posthog-react-native 3.3.5 ios builds are failing with error __ is only available in iOS 13.0 or newer

How to reproduce

  1. Switch to posthog-react-native 3.3.5 on an existing RN project.
  2. Run the project on Xcode, to see the bug.

Related sub-libraries

Additional context

Screenshot 2024-10-18 at 4 13 26 PM
marandaneto commented 1 month ago

Hello @MDSADABWASIM The iOS SDK and the RN SDK with posthog-react-native-session-replay require iOS 13. We should have mentioned here that requires iOS 13 (@ioannisj can you add a note about that on this page?). So in this case, either upgrade your min OS target or do not use posthog-react-native-session-replay until you can bump your min OS version, sorry about that.

MDSADABWASIM commented 1 month ago

@marandaneto i even tried bumping the version to 13 as error suggested, But it still fails.

marandaneto commented 1 month ago

@marandaneto i even tried bumping the version to 13 as error suggested, But it still fails.

You probably misconfigured something, it is something in your environment in this case since the SDK has its rules defined in the podfile correctly.

MDSADABWASIM commented 1 month ago

Thanks for confirmation, I'll check it on my side then.

ioannisj commented 1 month ago

We should have mentioned here that requires iOS 13

@marandaneto here as well I would imagine

marandaneto commented 1 month ago

@MDSADABWASIM https://github.com/PostHog/posthog-react-native-session-replay/releases/tag/0.1.5 not sure if being explicit would help but give it a try (at least the error message should make more sense)

ioannisj commented 1 month ago

Added minimum deployment targets https://github.com/PostHog/posthog.com/pull/9677