Reputation: 461
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:
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
Reputation: 2434
Here's a fuller view for where the Mixpanel based preprocessor macros should be added:
Upvotes: 2
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.
Upvotes: 7