Update to Mixpanel iOS SDK: 2.2.0

218 views
Skip to first unread message

Anna Wiener

unread,
Nov 20, 2013, 9:35:41 PM11/20/13
to mp-...@googlegroups.com
Mixpanel has just released a new version of the iOS library that makes everything ARC-compatible. This will make Mixpanel integrations even easier, and will bring the library up to current Objective-C standards.

Installing

There are two ways to install the new version of the Mixpanel iOS SDK. The source is available to download from GitHub. Alternatively, if you are using CocoaPods, and your Podfile has the line:

 pod 'Mixpanel'

then you just need to run pod update to get the latest version. If your Podfile specifies the version of Mixpanel to use, you will also need to update that to 2.2.0.

Integrating

If you were previously using Mixpanel's 2.1.0 iOS library in an ARC-enabled project and you were using the -fno-objc-arc flag on all Mixpanel files, you can now remove that flag. If you are using Mixpanel in a project that doesn't have ARC enabled, you will have to add the -fobjc-arc flag to all Mixpanel files in order to make them compile with ARC. 

You can add and remove compiler flags on a per-file basis in XCode. To do so, simply go into your project settings under Build Phases > Compile Sources. 

For all other questions about updating to 2.2.0 or integrating Mixpanel into your iOS app, please take a look at our documentation, or contact our support team at sup...@mixpanel.com.
Reply all
Reply to author
Forward
0 new messages