google code xcode debugging

xcode - code - Deshabilitar el registro de depuración de Google App Measurement



google analytics (3)

En Xcode 7.2, ¿cómo puedo desactivar estas mediciones de depuración / intempestive muestra:

2016-01-07 11:52:53.085 MyApp[1457:] <GMR/INFO> App measurement v.1302000 started 2016-01-07 11:52:53.091 MyApp[1457:] <GMR/INFO> To enable debug logging set the following application argument: -GMRDebugEnabled (see http://goo.gl/Y0Yjwu) 2016-01-07 11:52:53.091 MyApp[1457:] <GMR/DEBUG> Debug logging enabled 2016-01-07 11:52:53.092 MyApp[1457:] <GMR/DEBUG> App measurement is monitoring the network status 2016-01-07 11:52:53.188 MyApp[1457:] <GMR/DEBUG> App measurement is ready to receive events 2016-01-07 11:52:53.201 MyApp[1457:] <GMR/DEBUG> No network. Upload task will not be scheduled 2016-01-07 11:52:53.202 MyApp[1457:] <GMR/DEBUG> Scheduling user engagement timer 2016-01-07 11:52:53.202 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 3600 2016-01-07 11:52:53.203 MyApp[1457:] <GMR/INFO> App measurement enabled 2016-01-07 11:52:53.237 MyApp[1457:] <GMR/DEBUG> Scheduling user engagement timer 2016-01-07 11:52:53.242 MyApp[1457:] <GMR/DEBUG> Canceling active timer 2016-01-07 11:52:53.245 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 3600 2016-01-07 11:52:53.270 MyApp[1457:] <GMR/DEBUG> Network status has changed. code, status: 3, Connected 2016-01-07 11:52:53.272 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 1614.930058836937 2016-01-07 11:52:53.272 MyApp[1457:] <GMR/DEBUG> Upload task scheduled to be executed in approx. (s): 1614.930058836937

Me molesta desde hace un tiempo ...

Gracias !

Editar: noGMRDebugEnabled bandera - noGMRDebugEnabled , reinstalé la aplicación sin - GMRDebugEnabled , GMRDebugEnabled contenido y la configuración, reinicié Xcode ... nada funciona :-(


Para eliminar el modo de depuración, puede eliminar la entrada UserDefault usando la siguiente llamada (solo necesita ejecutarla una vez):

[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"/google/measurement/debug_mode"];


En Swift para desactivar las medidas de Google que agregué en el lanzamiento de UIApplicationDelegate:

GMRConfiguration.sharedInstance().setIsEnabled(false)


Finalmente, lo encontré en los documentos de la API de Google .

En el archivo GoogleService-Info.plist, debe agregar una clave llamada IS_MEASUREMENT_ENABLED , configurarla como booleana y seleccionar NO value. Esto desactivará la función de medición de la aplicación y se mostrará en la consola:

2016-07-03 10:51:38.522 MyApp[313:] <GMR/INFO> App measurement disabled

Gracias por todas sus respuestas !