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
Mobile app fixtures (#434)
One directory per way an app pins (or fails to pin) its dependencies, uploaded as a source archive. They prove that no mobile app ends with "0 packages, 0 CVEs" unless the scan also says why.
| Directory | What it pins | Expected |
|---|---|---|
android-gradle-lock |
app/gradle.lockfile (okhttp 3.12.0, gson 2.8.8) |
3 Maven components with their advisories |
android-gradle-catalog |
nothing: libs.versions.toml plus a literal coordinate |
the 3 direct dependencies read from the catalog and the build file, with their advisories; a recorded sbom_dependencies skip (what they pull in is unknown) |
android-legacy-groovy |
nothing: ext and gradle.properties versions, phone/tablet flavors, map notation, one 1.+ |
the 4 shipped direct dependencies with exact versions (no test, annotation processor or dynamic one); a recorded sbom_dependencies skip |
ios-cocoapods |
Podfile.lock (AFNetworking 2.5.1) |
2 pods; a recorded cve_lookup skip, as OSV has no CocoaPods advisories |
ios-spm-xcode |
Package.resolved inside the Xcode project (swift-nio-http2 1.19.0) |
1 Swift component with its advisories (needs the purl in repository form) |
ios-spm-unlocked |
nothing: the Xcode project names a Swift package | none; a recorded sbom_dependencies skip naming project.pbxproj |
ios-carthage-legacy |
Cartfile.resolved (Alamofire 4.8.2, grpc-swift 1.0.0, a binary vendor framework); an Xcode project at iOS 10 and Swift 3 |
both repositories as Swift components, grpc-swift with its advisories; the binary framework listed without; a recorded sbom_dependencies skip naming the binary pin; the iOS deployment target and Swift version lifecycle findings |
flutter |
pubspec.lock (dio 3.0.10); the Android host app is unlocked |
the Dart packages and the host app's direct Gradle dependency; a recorded sbom_dependencies skip |
react-native |
package-lock.json; neither ios/Podfile nor the Gradle app is locked |
the npm packages; a recorded sbom_dependencies skip |
| android-insecure | nothing (no Gradle lock) | mobsfscan: manifest (debuggable, backups, cleartext, minSdk), Kotlin (JavaScript bridge, MD5), Java under inspection/ (world-readable, Random) |
| ios-insecure | nothing | mobsfscan: ATS off in Info.plist, CC_MD5 in Swift, NSLog in Objective-C |
The other fixtures' code only makes each tree look like the app it stands for and must stay free of findings, except React Native, whose Java and Swift files each plant one flaw: both must be found, which proves mobsfscan runs with the Android and the iOS rules on a repository holding both apps.
The Java file under inspection/ guards a mobsfscan default: libsast skips any
path that merely contains spec, which Prüfwerk switches off.