Closed zkhalapyan closed 3 years ago
Oh, was using pod 'Mixpanel'
instead of pod 'Mixpanel-Swift'
. There is no way to prevent this mistake from happening yeh?
hi @zkhalapyan , for our Swift SDK, we recommend using SPM to integrate so it's unlikely to have this kind of mistake. In Xcode, select File > Swift Packages > Add Package Dependency. Follow the prompts using the Github URL for Mixpanel Swift library and a minimum semantic version of v2.8.0
Following the examples on Mixpanel's Swift setup, I am using the
initialize(..)
function. However, it seems like this has either been removed, deprecated or renamed. Can you please advice.I am on Xcode 12, installing latest Mixpanel via CocoaPods.
Is the correct option to use
Mixpanel.sharedInstance(withToken: mixpanelToken)
?