kalnyc67 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

This class is not key value coding-compliant for the key #619

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Name of affected component: Campaign Measurement iOS tutorial

Objective-C

Issue summary:
There is a critical bug in Campaign Measurement iOS tutorial causing an app to 
crash 
(https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#g
eneral-campaigns).

There is this line of code in the method 
application:openURL:sourceApplication:annotation

    if(![hitParams valueForKey:kGAICampaignSource] && [url host].length !=0) {

Calling *valueForKey* on GAIDictionaryBuilder causes an app to crash with "This 
class is not key value coding-compliant for the key". It should be replaced 
with *get* method of GAIDictionaryBuilder.

Original issue reported on code.google.com by skor...@gmail.com on 22 Apr 2015 at 6:32