iOS readiness, story 1: detection and SBOM. Requested by the platform session for the mobile epic. Stage only.
Already covered
Syft reads Podfile.lock and Package.resolved, including the one inside *.xcodeproj, checked with syft 1.42.
Swift purls are rewritten to the repository form (#440).
CocoaPods components are reported as not checked, since OSV has no CocoaPods advisories.
New
Carthage (sbom/carthage.rs):
Cartfile.resolved is read.
A github/git pin becomes pkg:swift/<host>/<owner>/<repo>@<tag>. It's the same repository and tags as the Swift package, so OSV's Swift advisories match. A repository that SwiftPM already pins is listed once.
A binary framework is listed without a purl, and the coverage note (Nicht ausgeführt) names its Cartfile.resolved.
A Cartfile without Cartfile.resolved is reported as the gap. Until now every Cartfile counted as unreadable.
Lifecycle findings (build-lifecycle, from every app project.pbxproj, never Pods/ or Carthage/):
ios-deployment-target-end-of-support, Low: the lowest IPHONEOS_DEPLOYMENT_TARGET is below iOS 15. iOS 15 got 15.8.8 in May 2026; 14 and 12 are EoL (endoflife.date). The text says plainly that the app still runs on current iOS.
swift-version-end-of-support, Medium: SWIFT_VERSION is below 4. No Xcode since 10.2 builds such code.
Both map to cra-ai-22, and the binding now also applies to swift/objc.
Not judged: the Xcode version. A repository doesn't record it; LastUpgradeCheck only says when the project was last opened.
Classification:.xcworkspace or Cartfile also marks an iOS app.
Docs:docs/guide/sbom.md.
Tests
Unit tests: Carthage parser and purls (github, https, ssh, v tag, commit, binary), dedup across files, binary gap, pbxproj minimum (lowest line), and Pods/Carthage projects skipped.
fmt and clippy -D warnings. Agent lib: 623 tests.
Nightly fixture mobile/ios-carthage-legacy, run locally (bless, then compare on a second fresh DB, both green):
SBOM: 3 Carthage components; grpc-swift's 4 GHSA are matched; a sbom_dependencies skip for the binary framework; both lifecycle findings.
The other mobile baselines are unchanged. The Python baselines drifted only because OSV published new advisories; that drift was discarded.
To check on stage
Upload an iOS app with Cartfile.resolved as an archive (for example the fixture folder fixtures/nightly/mobile/ios-carthage-legacy).
In the SBOM, expect carthage components, with grpc-swift's CVEs in the findings and the CRA view.
Expect the findings "The app installs on iOS 10.0…" (Low) and "Swift 3.0 cannot be built…" (Medium).
Under Nicht ausgeführt, expect Cartfile.resolved listed for the binary framework.
No reserved files touched (cve.rs, nuget*, llm/triage.rs, semgrep/gitleaks rules, version files).
**iOS readiness, story 1: detection and SBOM.** Requested by the platform session for the mobile epic. Stage only.
## Already covered
- Syft reads `Podfile.lock` and `Package.resolved`, including the one inside `*.xcodeproj`, checked with syft 1.42.
- Swift purls are rewritten to the repository form (#440).
- CocoaPods components are reported as not checked, since OSV has no CocoaPods advisories.
## New
- **Carthage** (`sbom/carthage.rs`):
- `Cartfile.resolved` is read.
- A `github`/`git` pin becomes `pkg:swift/<host>/<owner>/<repo>@<tag>`. It's the same repository and tags as the Swift package, so OSV's Swift advisories match. A repository that SwiftPM already pins is listed once.
- A `binary` framework is listed without a purl, and the coverage note (**Nicht ausgeführt**) names its `Cartfile.resolved`.
- A `Cartfile` without `Cartfile.resolved` is reported as the gap. Until now every `Cartfile` counted as unreadable.
- **Lifecycle findings** (`build-lifecycle`, from every app `project.pbxproj`, never `Pods/` or `Carthage/`):
- `ios-deployment-target-end-of-support`, **Low**: the lowest `IPHONEOS_DEPLOYMENT_TARGET` is below iOS 15. iOS 15 got 15.8.8 in May 2026; 14 and 12 are EoL (endoflife.date). The text says plainly that the app still runs on current iOS.
- `swift-version-end-of-support`, **Medium**: `SWIFT_VERSION` is below 4. No Xcode since 10.2 builds such code.
- Both map to `cra-ai-22`, and the binding now also applies to `swift`/`objc`.
- **Not judged: the Xcode version.** A repository doesn't record it; `LastUpgradeCheck` only says when the project was last opened.
- **Classification:** `.xcworkspace` or `Cartfile` also marks an iOS app.
- **Docs:** `docs/guide/sbom.md`.
## Tests
- Unit tests: Carthage parser and purls (github, https, ssh, `v` tag, commit, binary), dedup across files, binary gap, pbxproj minimum (lowest line), and Pods/Carthage projects skipped.
- fmt and clippy `-D warnings`. Agent lib: 623 tests.
- **Nightly fixture `mobile/ios-carthage-legacy`**, run locally (bless, then compare on a second fresh DB, both green):
- SBOM: 3 Carthage components; grpc-swift's 4 GHSA are matched; a `sbom_dependencies` skip for the binary framework; both lifecycle findings.
- The other mobile baselines are unchanged. The Python baselines drifted only because OSV published new advisories; that drift was discarded.
## To check on stage
1. Upload an iOS app with `Cartfile.resolved` as an archive (for example the fixture folder `fixtures/nightly/mobile/ios-carthage-legacy`).
2. In the SBOM, expect `carthage` components, with grpc-swift's CVEs in the findings and the CRA view.
3. Expect the findings "The app installs on iOS 10.0…" (Low) and "Swift 3.0 cannot be built…" (Medium).
4. Under **Nicht ausgeführt**, expect `Cartfile.resolved` listed for the binary framework.
No reserved files touched (`cve.rs`, `nuget*`, `llm/triage.rs`, semgrep/gitleaks rules, version files).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
iOS readiness, story 1 (detection and SBOM). Syft already reads
Podfile.lock and Package.resolved (also inside the Xcode project); what
was missing:
- Carthage: Cartfile.resolved is read (sbom/carthage.rs). A github/git
pin is the same repository at the same tag as its Swift package, so it
gets the purl OSV keys Swift advisories by
(pkg:swift/github.com/grpc/grpc-swift@1.0.0) and is matched; a
repository also pinned through SwiftPM is listed once. A binary
framework is listed without a purl, and the coverage note names its
Cartfile.resolved, since no advisory database covers it. A Cartfile
without Cartfile.resolved is now the gap (was: every Cartfile).
- build-lifecycle reads every app project.pbxproj (not Pods or Carthage
checkouts) at its lowest setting:
- ios-deployment-target-end-of-support (Low): IPHONEOS_DEPLOYMENT_TARGET
below 15 lets the app install on iOS releases without security updates
(iOS 15 got 15.8.8 in May 2026; 14 and 12 are end of life).
- swift-version-end-of-support (Medium): SWIFT_VERSION below 4, which no
Xcode since 10.2 builds.
Both map to cra-ai-22; the binding now covers swift/objc. The Xcode
version is not judged: a repository does not record it.
- Classification: an .xcworkspace or a Cartfile also marks an iOS app.
- Nightly fixture mobile/ios-carthage-legacy (Swift 3, iOS 10, Carthage
with Alamofire, grpc-swift and a binary framework): baseline holds the
four grpc-swift advisories and both lifecycle findings.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang
merged commit 2941d89fc5 into main2026-10-05 23:14:05 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
iOS readiness, story 1: detection and SBOM. Requested by the platform session for the mobile epic. Stage only.
Already covered
Podfile.lockandPackage.resolved, including the one inside*.xcodeproj, checked with syft 1.42.New
sbom/carthage.rs):Cartfile.resolvedis read.github/gitpin becomespkg:swift/<host>/<owner>/<repo>@<tag>. It's the same repository and tags as the Swift package, so OSV's Swift advisories match. A repository that SwiftPM already pins is listed once.binaryframework is listed without a purl, and the coverage note (Nicht ausgeführt) names itsCartfile.resolved.CartfilewithoutCartfile.resolvedis reported as the gap. Until now everyCartfilecounted as unreadable.build-lifecycle, from every appproject.pbxproj, neverPods/orCarthage/):ios-deployment-target-end-of-support, Low: the lowestIPHONEOS_DEPLOYMENT_TARGETis below iOS 15. iOS 15 got 15.8.8 in May 2026; 14 and 12 are EoL (endoflife.date). The text says plainly that the app still runs on current iOS.swift-version-end-of-support, Medium:SWIFT_VERSIONis below 4. No Xcode since 10.2 builds such code.cra-ai-22, and the binding now also applies toswift/objc.LastUpgradeCheckonly says when the project was last opened..xcworkspaceorCartfilealso marks an iOS app.docs/guide/sbom.md.Tests
vtag, commit, binary), dedup across files, binary gap, pbxproj minimum (lowest line), and Pods/Carthage projects skipped.-D warnings. Agent lib: 623 tests.mobile/ios-carthage-legacy, run locally (bless, then compare on a second fresh DB, both green):sbom_dependenciesskip for the binary framework; both lifecycle findings.To check on stage
Cartfile.resolvedas an archive (for example the fixture folderfixtures/nightly/mobile/ios-carthage-legacy).carthagecomponents, with grpc-swift's CVEs in the findings and the CRA view.Cartfile.resolvedlisted for the binary framework.No reserved files touched (
cve.rs,nuget*,llm/triage.rs, semgrep/gitleaks rules, version files).🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
iOS readiness, story 1 (detection and SBOM). Syft already reads Podfile.lock and Package.resolved (also inside the Xcode project); what was missing: - Carthage: Cartfile.resolved is read (sbom/carthage.rs). A github/git pin is the same repository at the same tag as its Swift package, so it gets the purl OSV keys Swift advisories by (pkg:swift/github.com/grpc/grpc-swift@1.0.0) and is matched; a repository also pinned through SwiftPM is listed once. A binary framework is listed without a purl, and the coverage note names its Cartfile.resolved, since no advisory database covers it. A Cartfile without Cartfile.resolved is now the gap (was: every Cartfile). - build-lifecycle reads every app project.pbxproj (not Pods or Carthage checkouts) at its lowest setting: - ios-deployment-target-end-of-support (Low): IPHONEOS_DEPLOYMENT_TARGET below 15 lets the app install on iOS releases without security updates (iOS 15 got 15.8.8 in May 2026; 14 and 12 are end of life). - swift-version-end-of-support (Medium): SWIFT_VERSION below 4, which no Xcode since 10.2 builds. Both map to cra-ai-22; the binding now covers swift/objc. The Xcode version is not judged: a repository does not record it. - Classification: an .xcworkspace or a Cartfile also marks an iOS app. - Nightly fixture mobile/ios-carthage-legacy (Swift 3, iOS 10, Carthage with Alamofire, grpc-swift and a binary framework): baseline holds the four grpc-swift advisories and both lifecycle findings. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p