iOS readiness, story 3: the Unity build target. Requested by the platform session for the mobile epic. Stage only.
Where the build target comes from
The active build target is in Library/EditorUserBuildSettings.asset, which is never committed. EditorBuildSettings.asset only lists scenes.
So the target platforms are inferred from the Player Settings (ProjectSettings/ProjectSettings.asset). I calibrated this against 4 public Unity-Technologies projects (BoatAttack, ml-agents, arfoundation-samples, RenderStreaming).
Unity writes a bundle id and a minimum OS for every platform. So a platform only counts as a target when either:
its bundle id was chosen by someone (not com.DefaultCompany.* or com.Company.ProductName), or
it has native plug-ins under Assets/Plugins/iOS|Android.
A binary-serialised file ("Force Binary") is ignored.
Changes
pipeline/unity_settings.rs: one reader, used in three places.
Classification:
IosApp and/or AndroidApp per targeted platform. When both are targeted, both are offered; android_app comes first because ties sort by name.
DesktopApp only when neither platform is targeted.
Bundle ids are stored as bundle_id facts.
build-lifecycle (only for targeted platforms):
iOSTargetOSVersionString below 15 → ios-deployment-target-end-of-support. It shares a helper with the Xcode check.
New SkipCode::PlatformProjectGenerated (stage platform_project, label "Von Unity erzeugtes App-Projekt"):
Text: "Für – iOS (Xcode) erzeugt Unity das App-Projekt erst beim Build; … Info.plist bzw. Manifest, Berechtigungen und nativer Code sind daher nicht geprüft. Exportieren Sie das Projekt …"
Not recorded when an exported .xcodeproj/build.gradle is in the tree.
Informational only: the stage maps to no tool, so the CRA view stays the same.
Fix to #478: binary Carthage frameworks were filed under sbom_dependencies, which the dashboard words as "… ohne Lockfile". They're now a CVE gap: "Nicht abgeglichen: Carthage: PumpSDK 3.1.0", the same as the DLL-only .NET assemblies.
Docs:guide/sbom.
Tests
Unit tests:
Player Settings: chosen vs default bundle id, plug-ins, binary file;
generated project vs exported Xcode project;
classifier for iOS+Android with bundle-id facts;
lifecycle only for targeted platforms (a desktop project with the same settings gives nothing);
dashboard text in DE/EN.
fmt and clippy -D warnings: core, agent, and dashboard for both server and wasm.
Test runs: agent 667, dashboard 82, core 85.
Nightly, run locally (bless, then compare, both green):
New fixture mobile/unity-mobile: both lifecycle findings, the platform_project skip, the editor in the SBOM.
ios-carthage-legacy moves its skip to cve_lookup (the intended change).
Python baselines: OSV drift discarded.
To check on stage
Upload fixtures/nightly/mobile/unity-mobile as an archive.
Type suggestions: iOS-App and Android-App.
Findings: "The app installs on iOS 12.0…" and "…Android API 22…", both Low under cra-ai-22.
Under Nicht ausgeführt, two "Von Unity erzeugtes App-Projekt" entries (iOS/Xcode and Android/Gradle).
**iOS readiness, story 3: the Unity build target.** Requested by the platform session for the mobile epic. Stage only.
## Where the build target comes from
- The active build target is in `Library/EditorUserBuildSettings.asset`, which is never committed. `EditorBuildSettings.asset` only lists scenes.
- So the target platforms are inferred from the **Player Settings** (`ProjectSettings/ProjectSettings.asset`). I calibrated this against 4 public Unity-Technologies projects (BoatAttack, ml-agents, arfoundation-samples, RenderStreaming).
- Unity writes a bundle id and a minimum OS for **every** platform. So a platform only counts as a target when either:
- its bundle id was chosen by someone (not `com.DefaultCompany.*` or `com.Company.ProductName`), or
- it has native plug-ins under `Assets/Plugins/iOS|Android`.
- A binary-serialised file ("Force Binary") is ignored.
## Changes
- **`pipeline/unity_settings.rs`:** one reader, used in three places.
- **Classification:**
- `IosApp` and/or `AndroidApp` per targeted platform. When both are targeted, both are offered; `android_app` comes first because ties sort by name.
- `DesktopApp` only when neither platform is targeted.
- Bundle ids are stored as `bundle_id` facts.
- **build-lifecycle** (only for targeted platforms):
- `iOSTargetOSVersionString` below 15 → `ios-deployment-target-end-of-support`. It shares a helper with the Xcode check.
- `AndroidMinSdkVersion` below 29 → **new** `android-min-sdk-end-of-support` (Low, "installs on"), mapped to cra-ai-22.
- **New `SkipCode::PlatformProjectGenerated`** (stage `platform_project`, label "Von Unity erzeugtes App-Projekt"):
- Text: "Für <Projekt> – iOS (Xcode) erzeugt Unity das App-Projekt erst beim Build; … Info.plist bzw. Manifest, Berechtigungen und nativer Code sind daher nicht geprüft. Exportieren Sie das Projekt …"
- Not recorded when an exported `.xcodeproj`/`build.gradle` is in the tree.
- **Informational only:** the stage maps to no tool, so the CRA view stays the same.
- **Fix to #478:** binary Carthage frameworks were filed under `sbom_dependencies`, which the dashboard words as "… ohne Lockfile". They're now a CVE gap: "Nicht abgeglichen: Carthage: PumpSDK 3.1.0", the same as the DLL-only .NET assemblies.
- **Docs:** `guide/sbom`.
## Tests
- Unit tests:
- Player Settings: chosen vs default bundle id, plug-ins, binary file;
- generated project vs exported Xcode project;
- classifier for iOS+Android with bundle-id facts;
- lifecycle only for targeted platforms (a desktop project with the same settings gives nothing);
- dashboard text in DE/EN.
- fmt and clippy `-D warnings`: core, agent, and dashboard for both server and wasm.
- Test runs: agent 667, dashboard 82, core 85.
- **Nightly, run locally** (bless, then compare, both green):
- New fixture `mobile/unity-mobile`: both lifecycle findings, the `platform_project` skip, the editor in the SBOM.
- `ios-carthage-legacy` moves its skip to `cve_lookup` (the intended change).
- Python baselines: OSV drift discarded.
## To check on stage
1. Upload `fixtures/nightly/mobile/unity-mobile` as an archive.
2. Type suggestions: iOS-App and Android-App.
3. Findings: "The app installs on iOS 12.0…" and "…Android API 22…", both Low under cra-ai-22.
4. Under **Nicht ausgeführt**, two "Von Unity erzeugtes App-Projekt" entries (iOS/Xcode and Android/Gradle).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
iOS readiness, story 3. The active Unity build target lives in Library/,
never committed, and EditorBuildSettings.asset lists only scenes. The
platforms a project ships to are therefore read from Player Settings
(ProjectSettings/ProjectSettings.asset, text-serialised), calibrated on
four public Unity-Technologies projects: Unity writes a bundle identifier
and a minimum OS for every platform, so a platform counts as targeted only
with a bundle identifier someone chose (not com.DefaultCompany.* or
com.Company.ProductName) or native plug-ins in Assets/Plugins/<platform>.
- pipeline/unity_settings.rs: one reader for the three uses below.
- Classification: IosApp and/or AndroidApp per targeted platform (both
offered; android_app sorts first on the tie), DesktopApp only when
neither; chosen bundle ids as `bundle_id` facts.
- build-lifecycle, for targeted platforms only: iOSTargetOSVersionString
below 15 reuses ios-deployment-target-end-of-support (shared helper with
the Xcode check); AndroidMinSdkVersion below 29 is the new
android-min-sdk-end-of-support (Low, "installs on"), mapped to
cra-ai-22.
- New SkipCode::PlatformProjectGenerated (stage platform_project): the
Xcode/Gradle project Unity generates at build time is not in the
repository, so its Info.plist or manifest, permissions and native code
go unchecked; export it and upload it as an archive. Not recorded when
an exported .xcodeproj or build.gradle is in the tree. Informational:
no tool is mapped to the stage, so the CRA view is unchanged. Dashboard
wording DE/EN.
- Fix from #478: prebuilt Carthage frameworks were reported under
sbom_dependencies, which the dashboard words "… ohne Lockfile". They are
now a CVE gap ("Nicht abgeglichen: Carthage: PumpSDK 3.1.0"), like the
DLL-only .NET assemblies.
- Docs (sbom guide); nightly fixture mobile/unity-mobile (Unity 2022.3,
iOS 12 / API 22: both lifecycle findings, the platform_project skip);
ios-carthage-legacy baseline moves its skip to cve_lookup.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang
merged commit 25072056dc into main2026-10-05 23:56:35 +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 3: the Unity build target. Requested by the platform session for the mobile epic. Stage only.
Where the build target comes from
Library/EditorUserBuildSettings.asset, which is never committed.EditorBuildSettings.assetonly lists scenes.ProjectSettings/ProjectSettings.asset). I calibrated this against 4 public Unity-Technologies projects (BoatAttack, ml-agents, arfoundation-samples, RenderStreaming).com.DefaultCompany.*orcom.Company.ProductName), orAssets/Plugins/iOS|Android.Changes
pipeline/unity_settings.rs: one reader, used in three places.IosAppand/orAndroidAppper targeted platform. When both are targeted, both are offered;android_appcomes first because ties sort by name.DesktopApponly when neither platform is targeted.bundle_idfacts.iOSTargetOSVersionStringbelow 15 →ios-deployment-target-end-of-support. It shares a helper with the Xcode check.AndroidMinSdkVersionbelow 29 → newandroid-min-sdk-end-of-support(Low, "installs on"), mapped to cra-ai-22.SkipCode::PlatformProjectGenerated(stageplatform_project, label "Von Unity erzeugtes App-Projekt"):.xcodeproj/build.gradleis in the tree.sbom_dependencies, which the dashboard words as "… ohne Lockfile". They're now a CVE gap: "Nicht abgeglichen: Carthage: PumpSDK 3.1.0", the same as the DLL-only .NET assemblies.guide/sbom.Tests
-D warnings: core, agent, and dashboard for both server and wasm.mobile/unity-mobile: both lifecycle findings, theplatform_projectskip, the editor in the SBOM.ios-carthage-legacymoves its skip tocve_lookup(the intended change).To check on stage
fixtures/nightly/mobile/unity-mobileas an archive.🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p