rxz99 / analytics-issues

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

Crash when using Google Analytics iOS SDK with the Kiwi BDD testing frame work: #716

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Google Analytics iOS SDK (v 3.13.0) 

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.):
 - GoogleAnalytics  3.13.0 (installed via Cocoapods)
 - Kiwi 2.4 (Behaviour Driven Development Testing framework) https://github.com/kiwi-bdd/

Issue summary:
Provide a brief summary of the issue you're experiencing.

Steps to reproduce issue:
1. Run a test case using the Kiwi BDD framework (example project here: 
https://github.com/indiegogo/GoogleAnalyticsKiwiCrash ) 
2. Observe when Kiwi calls "if (![candidateClass 
conformsToProtocol:@protocol(KWMatching)])". The error triggers a 
EXC_BAD_ACCESS in "-[GAIBatchingDispatcher initWithDataStore:]". At the time of 
error candidateClass is GAITrackedModel.

A discussion of the error is also found here: 
https://groups.google.com/forum/#!topic/kiwi-bdd/ZfLol8_Oz8k

Expected output:
What do you expect to see after performing the above steps?

This should not crash (infact it only started to crash as of Google Analytics 
iOS SDK version 3.0.10 (3.0.9 doesn't reproduce this issue). 

Actual results:
What do you actually see after performing the above steps?
Crash... 

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

An example project demonstrating this issue is available here: 
https://github.com/indiegogo/GoogleAnalyticsKiwiCrash

Original issue reported on code.google.com by kevin....@indiegogo.com on 19 Aug 2015 at 9:59