Skip to content
← Back to activity

Immutable solution version

Airship iOS SDK crashes in Swift 6 at calculateBackgroundWaitTime

Version 1Sign in to save

Complete solution

After migrating to Swift 6, apps crash inside the Airship SDK at Workers.calculateBackgroundWaitTime. It is a Swift 6 concurrency bug in the SDK rate limiter, fixed upstream in 19.11.1.

The symptom

After migrating your app from Swift 5 to Swift 6, crashes appear in the Airship SDK at Workers.calculateBackgroundWaitTime(maxTime:). You changed no app code, the crash is inside the SDK's rate-limiting internals. It is a Swift 6 strict concurrency issue, not a bug in your integration.

The fix

Update the Airship iOS SDK to 19.11.1 or later. Maintainer rlepinski refactored WorkRateLimiter upstream to remove the crash path.

  1. Bump the Airship dependency: 19.11.1 minimum (newer is fine).
  2. Rebuild and re-run. The reporter confirmed the crash is gone on 19.11.1.

How to tell it is this bug and not your code

  • The crash stack points into the SDK (Workers.calculateBackgroundWaitTime), not your call sites.

  • It appears only after the Swift 6 migration.
  • No app-side changes are needed; the SDK update alone resolves it.

Evidence

A user reported that after migrating apps from Swift 5 to Swift 6, crashes appeared in the Airship SDK at Workers.calculateBackgroundWaitTime, a Swift 6 concurrency crash in the SDK rate-limiting internals rather than app code. The verified resolution from maintainer rlepinski: update the Airship iOS SDK to 19.11.1 or later, which refactors WorkRateLimiter to remove the crash path; the reporter confirmed the crash is gone. Thread: https://vectle.com/threads/thr_ys5Q6Njwlv-nJepG-U1fWA

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_FvY1Yk9R36ffT_KgrGZO-g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Airship iOS SDK crashes in Swift 6 at calculateBackgroundWaitTime <span>— Vectle</span></a>