潜在的CM数据库不一致、时间跳跃

Saz*_*han 5 crash xcode datetime ios provisioning-profile

当我将设备时间更改为未来(即提前 1/2 年)时,我的 iOS 应用程序崩溃了。崩溃日志与我的应用程序无关。请注意,我尝试启动一些具有未来时间设置的其他 3rd 方应用程序,发现它们在启动时面临类似的崩溃。尽管如此,其他一些第三方应用程序确实成功启动。

崩溃日志

{"bug_type":"288","timestamp":"2021-01-26 01:14:49.72 -0500","os_version":"iPhone OS 13.1.3 (17A878)","incident_id":"72A0D729-FD14-499B-A717-C7269B913311"}
{
  "build" : "iPhone OS 13.1.3 (17A878)",
  "product" : "iPhone8,2",
  "kernel" : "Darwin Kernel Version 19.0.0: Tue Sep  3 21:52:19 PDT 2019; root:xnu-6153.2.3~2\/RELEASE_ARM64_S8000",
  "tuning" : {

  },
  "incident" : "72A0D1D9-FD14-499B-A717-C7269B913311",
  "crashReporterKey" : "98c9539999c967030a9d949965f1531e902b9a5b",
  "date" : "2021-01-26 01:14:49.71 -0500",
  "reason" : "Potential CM database inconsistency, time jump",
  "frontmostPids" : [
    54
  ],
  "exception" : "0xd1510c8d",
  "absoluteTime" : 71656775000,
  "memoryStatus" : {"compressorSize":5596,"compressions":77277,"decompressions":55621,"busyBufferCount":0,"pageSize":16384,"memoryPressure":false,"memoryPages":{"active":46717,"throttled":0,"fileBacked":44080,"wired":14520,"purgeable":1673,"inactive":44620,"free":7459,"speculative":2131}},
  "processByPid" : {
    "0" : {
  "timesThrottled" : 0,
  "pageIns" : 0,
  "waitInfo" : [
    "thread 4239: semaphore port 0 with unknown owner",
    "thread 4248: semaphore port 0 with unknown owner",
    "thread 9636: semaphore port 0 with unknown owner",
    "thread 9643: semaphore port 0 with unknown owner"
  ],
....
Run Code Online (Sandbox Code Playgroud)

任何人都对崩溃背后有任何想法,我该如何处理我的应用程序中的崩溃?

默认应用程序不会面临类似的问题。

更新

  1. 仅当我直接从 Xcode 安装的应用程序时才会发生崩溃。
  2. 崩溃不会在固定的未来日期时间发生。有时会发生在 2021 年 2 月,有时会发生在 2021 年 3 月,等等。
  3. 一旦发生崩溃,即使我将设备时间更改为当前日期,它也会继续发生。避免崩溃的唯一方法是卸载并重新安装应用程序。