Solar2d Simulator(2020.3600) Crash on IOS build with Firebase Analytics plugins and Other plugins.
It Build successfully After removing Firebase Analytics Plugin.
ERROR: Runtime error
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:32: assertion failed!
stack traceback:
[C]: in function ‘assert’
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:32: in function ‘exec’
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:138: in function </Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:110>
[Device] *** Terminating app due to uncaught exception ‘FIRAnalyticsVersionMismatch’, reason: ‘Google Analytics for Firebase version (60202000) does not match with Google App Measurement (60600000) version. Please update.’
@Trung_Kien_Tran,
Following @Scott_Harrison’s Solar2D Marketplace website, you need to set up an account (if not done already) and activate them. The “Account ID” is on your account page on the marketplace. Please see here for his video guide, https://solar2dmarketplace.com/guide
*** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (60202000) does not match with Google App Measurement (60803000) version. Please update.'
(Using Firebase Analytics and AdMob Plugin).
This problem might arise anytime the Firebase or AdMob plugin gets updated. Isn’t there a way to make the versions match automatic?
I have been struggling with the same problem a couple of times. I managed to update the downloaded plugin versions in such a way that at the moment my game (development version) has no version conflicts and has Firebase Analytics and AdMob plugins running. I did unpack the plugin tars, replaced the conflicting files with compatible ones and repacked the files again. And the game runs and works both on iOS and Android.