Crash when running game on device related to UnityEngine.UnityAnalyticsModule.dll

Hello, when I build and run my game on iOS I get this error:

UnloadTime: 0.082791 ms
Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
Unable to find method CallIdentityTokenChanged in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
Unable to find method CallSessionStateChanged in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionState
Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.ContinuousEvent
Unable to find method RemoteConfigSettingsUpdated in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteConfigSettings
Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteConfigSettingsHelper/Tag
Unable to find method RemoteSettingsBeforeFetchFromServer in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
Unable to find method RemoteSettingsUpdateCompleted in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
Unable to find method RemoteSettingsUpdated in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
WARN : BSG_KSCrashSentry.c (103): BSG_KSCrashType bsg_kscrashsentry_installWithContext(BSG_KSCrash_SentryContext *, BSG_KSCrashType, void (*)(void *)): KSCrash: App is running in a debugger. Only user reported events will be handled.

I have tried removing Analytics, adding Analytics back into the game and confirmed it is working in the editor in the Dashboard, but still I receive this error when building.

What might be the issue?

1 Like

I added the “remote config” package (even though I’m not using it) to the project in Package Manager and that seems to have fixed it.

My goal is to not use Unity Analytics at all, but since I am using Unity IAP, it seems I have to use Unity Services which means I have to add all these packages in.

2 Likes

Thanks for following up. Getting the same error after removing Unity Analytics. Kind of sucks we have to include it, as now we have to add a bunch of stuff on our privacy information on both Google and Apple.

EDIT: I was able to remove Unity Analytics by implementing the solution here: Crash on Android start due to "missing" UnityAnalytics - #2 by Tudamun