iOS / iPhone / iPad

Articles related to Apple iOS development including iPhone and iPad

-[GANCustomVariableBuffer retain]: message sent to deallocated instance

Fri, 05/18/2012 - 16:35 -- jeff

This error occurs with Google Analytics for iOS - GANTracker.

The error occurs when setting a custom variable after deploying a TrackEvent method. The solution is to set the custom variable first and then issue a track event method. The reason is because the variable gets transmitted along with the track event. If you set the custom variable up first, then track event

So:
call setCustomVariableAtIndex
then trackEvent

And not in the other order.

Pages