Skip to content

Support for macOS #24

Closed
Closed

Description

@txbrown

Can't install on a macOS target in a multi-paltform app (iOS+macOS).

Activity

  1. jeff-h commented on Jul 26, 2022

    @jeff-h

    Same issue for me — this won't compile for a Mac-only app. There are imports for UIKit in six classes which precludes compiling this for macOS.

    #import <UIKit/UIKit.h>

  2. jeff-h commented on Jul 27, 2022

    @jeff-h

    I noticed in the PostHog docs that "you can use any of our libraries or any Mixpanel library". So I went with the Mixpanel SPM package and it seems to be sending events through just fine from my Mac app to PostHog :)

  3. marandaneto commented on Oct 9, 2023

    @marandaneto
    Member

    Similar to #51

  4. wasauce commented on Nov 1, 2023

    @wasauce

    @marandaneto - will the new iOS sdk bring support to macOS? And or do you have a rough timeframe for when that could happen? I also see fromthe poster above -- that they used the Mixpanel SPM package -- does that method still work?

  5. marandaneto commented on Nov 2, 2023

    @marandaneto
    Member

    @wasauce the v3 SDK has compiler flags so it should just work on macOS, but a few features that depend on UIKit etc won't work but that's fine if you don't need them.
    The first v3 alpha is out today.
    Not sure if Mixpanel SDK is still compatible, that comment was 1y+ ago and the docs have been updated.

  6. marandaneto commented on Nov 2, 2023

    @marandaneto
    Member

    Similar to #24
    Some features don't work because they depend on UIKit or something available only for iOS targets, but the SDK should do the basic stuff as sending events, etc.
    https://github.com/PostHog/posthog-ios/releases/tag/3.0.0-alpha.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions