apolo
apolo

Reputation: 461

How to set up Debug mode for Mixpanel on iOS?

On the docs it says the following:

You can turn on Mixpanel logging by adding the following Preprocessor Macros in Build Settings: MIXPANEL_LOG=1 and MIXPANEL_DEBUG=1.

So that's what I did: enter image description here

But non of my events show up in the console :(

This is how I track events:

Mixpanel *mixpanel = [Mixpanel sharedInstance];
[mixpanel track:@"TEST"];

Upvotes: 4

Views: 2198

Answers (2)

Andrew Thompson
Andrew Thompson

Reputation: 2434

Here's a fuller view for where the Mixpanel based preprocessor macros should be added:

enter image description here

Upvotes: 2

Alex Hofsteede
Alex Hofsteede

Reputation: 251

I belive you are using CocoaPods to install the Mixpanel library. In this case, the library is actually compiled separately before it is included in your project. You need to open the Pods project in your workspace and choose the Pods-Mixpanel target and set the preproccessor macros there, so that they are evaluated when the Mixpanel library compiles.

example

Upvotes: 7

Related Questions