{
  "schemaVersion": "ebb.rule.v1",
  "id": "swift.app-store.ios-below-13",
  "ecosystem": "swift",
  "purl": "pkg:generic/ios",
  "affectedVersions": "vers:semver/<13.0.0",
  "event": "end-of-support",
  "severity": "high",
  "title": "iOS and iPadOS app targets below iOS 13 are not accepted for App Store uploads",
  "summary": "Since September 9, 2026, iOS and iPadOS apps uploaded to App Store Connect must target iOS 13 or later.",
  "replacement": "iOS 13 or later",
  "deadline": "2026-09-09",
  "sources": [
    {
      "title": "iOS and iPadOS minimum system requirements — App Store upcoming requirements",
      "url": "https://developer.apple.com/news/upcoming-requirements/?id=0992026a",
      "accessedAt": "2026-10-20"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-20",
    "reviewedAt": "2026-10-20",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Set the deployment target on the app target that is uploaded, not on a library or Swift package: libraries that declare an older platforms minimum are not changed by this rule.",
      "Raising the minimum removes iOS releases from the app's audience, and can remove APIs the app relies on; keep the minimum your users still run at or above 13."
    ],
    "steps": [
      {
        "id": "raise-deployment-target",
        "title": "Raise the iOS deployment target",
        "instructions": "Set IPHONEOS_DEPLOYMENT_TARGET on each build configuration of the app target to 13.0 or later (see the replacement), and keep it consistent across Debug and Release.",
        "targets": "declaration"
      },
      {
        "id": "align-deployment-surfaces",
        "title": "Align other deployment surfaces",
        "instructions": "Update the minimum version in documentation, release notes, and any App Store Connect or TestFlight metadata that names the old minimum.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "xcodebuild -showBuildSettings -scheme \"$(basename \"$PWD\")\" | grep IPHONEOS_DEPLOYMENT_TARGET",
        "purpose": "Confirm the app target resolves to the raised deployment target."
      },
      {
        "command": "xcodebuild -scheme \"$(basename \"$PWD\")\" -destination 'generic/platform=iOS' build",
        "purpose": "Build the app for iOS with the raised deployment target before uploading."
      }
    ]
  }
}
