appmetrica / appmetrica-unity-plugin

AppMetrica Plugin for Unity
https://appmetrica.io
MIT License
1 stars 0 forks source link

Errors on iOS after updating AppMetrica to v6.0.1 #3

Open BogdanBobkov opened 3 weeks ago

BogdanBobkov commented 3 weeks ago

Hi guys! We can see errors when we try report a user profile. We have never seen such exceptions before in the SDK version 5.2.0. What could be the problem?

error   23:34:53.035041+0400    CoreSample  -[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
error   23:34:53.035346+0400    CoreSample  -[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
)
error   23:52:54.347321+0400    CoreSample  +[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "Не удалось открыть файл «event_hashes.bin», так как такого файла не существует." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x283776a30 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error   23:52:54.347347+0400    CoreSample  +[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "Не удалось открыть файл «event_hashes.bin», так как такого файла не существует." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSUnderlyingError=0x28371eee0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error   23:52:54.348516+0400    CoreSample  +[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "Файл «event_hashes.bin» не существует." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/24a18f62-f156-4a4b-8693-bfee91e26dc4/event_hashes.bin, NSUnderlyingError=0x28371fae0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error   23:52:54.348644+0400    CoreSample  +[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "Файл «event_hashes.bin» не существует." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/FAF0AB02-0144-4F5C-95BF-C49C2BDA686A/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x283720150 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

error   23:36:23.766732+0400    CoreSample  -[AMATimeoutRequestsController reportOfFailure]:74 Report failed for `report.hosts`. Backoff interval: 1.000000, count: 1
Aretm-Su commented 3 weeks ago

Hi! I have the same error. Unity version is 2020.3.41f1

AlexanderMaximovich-azur commented 3 weeks ago

@BogdanBobkov Hi, you can use next woraround: after bulding unity project you can change AppMetricaAnalytics in Podfile: pod 'AppMetricaAnalytics', '5.3.0'

BogdanBobkov commented 2 weeks ago

@AlexanderMaximovich-azur Hi! Thanks for your reply. That still continues to appear in the native logs even after updating the AppMetricaAnalytics version to 5.3.0 in the Podfile.

BogdanBobkov commented 2 weeks ago

Are these errors critical? Can I use v6.0.1 in my project and be sure that everything will work well?

NesterovichAlexey commented 2 weeks ago

Internal issue

AliA74 commented 2 weeks ago

Any Fixes? We are experiencing similar problem with Unity 2021.3.37f1


)" UserInfo={numberOfErrorsDeep=0, NSDescription=Client explicitly specifies access group TEAM_ID.io.appmetrica but is only entitled for (
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: -[AMAKeychain dataForKey:error:]:182 Failed to retrieve data for key AMAKeychainAvailabilityCheckObjectKey, osstatus -34018
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: +[AMAErrorUtilities fillError:withError:]:18 Error Domain=kAMAKeychainErrorDomain Code=2 "(null)" UserInfo={kAMAKeychainErrorKeyCode=-34018}
 May  5 14:33:22 ***-iPhone securityd[135] <Notice>: AppName[639]/1#6 LF=0 add Error Domain=NSOSStatusErrorDomain Code=-34018 "Client explicitly specifies access group TEAM_ID.io.appmetrica but is only entitled for (
)" UserInfo={numberOfErrorsDeep=0, NSDescription=Client explicitly specifies access group TEAM_ID.io.appmetrica but is only entitled for (
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: -[AMAKeychain addData:forKey:error:]:150 Failed to add object for key AMAKeychainAvailabilityCheckObjectKey with osstatus -34018
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: -[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
 May  5 14:33:22 ***-iPhone AppName(UnityFramework)[639] <Notice>: [AppMetrica] activatation function called
AppmetricaInit:Awake()
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: -[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: -[AMADatabaseIntegrityProcessor checkIntegrityIssuesForDatabase:report:]:50 DB integrity check found issues: (
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: +[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/a18227a7-946a-438b-8b5b-dc3fad2d154a/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "The file \M-b\M^@\M^\event_hashes.bin\M-b\M^@\M^] couldn\M-b\M^@\M^Yt be opened because there is no such file." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/a18227a7-946a-438b-8b5b-dc3fad2d154a/event_hashes.bin, NSUnderlyingError=0x280d438a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: +[AMAFileUtility rawContentAtFilePath:error:]:87 Failed to read file /var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin with error: Error Domain=NSCocoaErrorDomain Code=260 "The file \M-b\M^@\M^\event_hashes.bin\M-b\M^@\M^] couldn\M-b\M^@\M^Yt be opened because there is no such file." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x280daa280 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: +[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/a18227a7-946a-438b-8b5b-dc3fad2d154a/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "The file \M-b\M^@\M^\event_hashes.bin\M-b\M^@\M^] doesn\M-b\M^@\M^Yt exist." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/a18227a7-946a-438b-8b5b-dc3fad2d154a/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/a18227a7-946a-438b-8b5b-dc3fad2d154a/event_hashes.bin, NSUnderlyingError=0x280f267c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
 May  5 14:33:22 ***-iPhone AppName(AppMetricaLog)[639] <Error>: +[AMAFileUtility setSkipBackupAttributesOnPath:]:131 Error excluding '/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin' from backup: Error Domain=NSCocoaErrorDomain Code=4 "The file \M-b\M^@\M^\event_hashes.bin\M-b\M^@\M^] doesn\M-b\M^@\M^Yt exist." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application%20Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSFilePath=/var/mobile/Containers/Data/Application/0116DDAA-AF23-4AD3-8613-2351FA68DBA2/Library/Application Support/ru.yandex.mobile.YandexMobileMetrica/20799a27-fa80-4b36-b2db-0f8141f24180/event_hashes.bin, NSUnderlyingError=0x280daa580 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Line  3108:  May  5 14:33:22 ***-iPhone AppName(UnityFramework)[639] <Notice>: [AppMetrica] activatation function called```
NesterovichAlexey commented 1 week ago

Hi! You can ignore these error logs. They are not critical. We will remove their output in future versions.