Я пытаюсь вызвать собственный трекер GoogleAnalytics в iOS с помощью этого кода:
(googleAnalytics.getTracker() as any).setValueForKey(value, (global as any).GAIFields.customDimensionForIndex(key));
(value
здесь строка, и вывод GAIFields.customDimensionForIndex(key)
тоже строка)
Но я получаю эту ошибку:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<GAITrackerImpl 0x2811e94a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key &cd1.'
Что я здесь не так делаю?