# veloxitynl/ubuntu-ios-toolchain architecture

> Architecture diagram of the GitHub repository veloxitynl/ubuntu-ios-toolchain, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/veloxitynl/ubuntu-ios-toolchain
- Repository: https://github.com/veloxitynl/ubuntu-ios-toolchain

## Overview

Ubuntu iOS Toolchain provides a Linux-based workflow for compiling, signing, packaging, and distributing iOS apps. The principal path is importing a user-supplied Apple SDK, optionally converting an Xcode project, building with xtool, shipping a signed IPA, and optionally uploading it. The README documents these workflow links and resource-tool capabilities; unsampled runtime wiring is not inferred.

Main entry points: [`ship.sh`](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ship.sh) (Ship pipeline), [`ubuntu-ios`](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ubuntu-ios) (ubuntu-ios CLI), [`tools/darwin-tools/Sources/actool/main.swift`](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/actool/main.swift) (Asset compiler), [`tools/ibmac.py`](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/ibmac.py) (Storyboard compiler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Project workflow"]
  node_launcher["ubuntu-ios CLI"]
  node_sdk["SDK import"]
  node_converter["Xcode converter<br/>[xcodeproj2xtool.py]"]
  node_adapter["xtool adapter"]
  node_builder["xtool build"]
end

subgraph group_resources["Build resources"]
  node_assets["Asset compiler<br/>[main.swift]"]
  node_assetprep["Catalog preparation<br/>[CatalogMerge.swift]"]
  node_asseticons["Icon processing"]
  node_assetsymbols["Asset symbols<br/>[AssetSymbols.swift]"]
  node_storyboards["Storyboard compiler<br/>[ibmac.py]"]
  node_nibarchive["NIB archive encoding<br/>[nibarchive.py]"]
  node_keyorder["NIB key ordering<br/>[keyorder.py]"]
  node_strings["Localized strings"]
  node_coredata["Core Data resources"]
  node_intents["App Intents metadata<br/>[appintentsmeta.py]"]
end

subgraph group_distribution["Signing and distribution"]
  node_ship["Ship pipeline<br/>[ship.sh]"]
  node_ipa["IPA packaging<br/>[ship.sh]"]
  node_signing["Signing and validation<br/>[asc.py]"]
  node_asc["App Store Connect<br/>[asc.py]"]
end

subgraph group_devices["Physical devices"]
  node_deviceworkflow["Device workflow<br/>[device-run.sh]"]
  node_devicecomms["USB device tools<br/>[device-run.sh]"]
end

node_developer(("App developer"))
node_iphone(("Physical iPhone"))

node_developer -->|"runs commands"| node_launcher
node_launcher -->|"imports SDK"| node_sdk
node_developer -->|"converts project"| node_converter
node_converter -->|"generates adapter"| node_adapter
node_adapter -->|"builds with xtool"| node_builder
node_launcher -->|"runs build"| node_builder
node_launcher -->|"runs ship"| node_ship
node_ship -->|"processes resources"| node_assets
node_assets -->|"prepares catalogs"| node_assetprep
node_assets -.->|"compiles icons"| node_asseticons
node_assets -->|"generates symbols"| node_assetsymbols
node_ship -->|"compiles storyboards"| node_storyboards
node_storyboards -.->|"writes archives"| node_nibarchive
node_storyboards -.->|"orders archive keys"| node_keyorder
node_ship -->|"processes strings"| node_strings
node_ship -->|"compiles resources"| node_coredata
node_ship -.->|"processes intents"| node_intents
node_ship -->|"signs and validates"| node_signing
node_signing -->|"packages IPA"| node_ipa
node_ipa -->|"uploads build"| node_asc
node_developer -->|"runs device workflow"| node_deviceworkflow
node_deviceworkflow -->|"uses USB stack"| node_devicecomms
node_devicecomms -->|"communicates with"| node_iphone

click node_launcher "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ubuntu-ios"
click node_sdk "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ubuntu-ios"
click node_converter "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/xcodeproj2xtool.py"
click node_ship "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ship.sh"
click node_assets "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/actool/main.swift"
click node_assetprep "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/DarwinAssets/CatalogMerge.swift"
click node_asseticons "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/DarwinAssets/SingleSizeIcon.swift"
click node_assetsymbols "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/actool/AssetSymbols.swift"
click node_storyboards "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/ibmac.py"
click node_nibarchive "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/nibarchive.py"
click node_keyorder "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/keyorder.py"
click node_strings "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/xcstringstool"
click node_coredata "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/momc"
click node_intents "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/appintentsmeta.py"
click node_ipa "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ship.sh"
click node_signing "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/asc.py"
click node_asc "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/asc.py"
click node_deviceworkflow "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/device-run.sh"
click node_devicecomms "https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/device-run.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_sdk,node_converter,node_adapter,node_builder toneBlue
class node_assets,node_assetprep,node_asseticons,node_assetsymbols,node_storyboards,node_nibarchive,node_keyorder,node_strings,node_coredata,node_intents toneAmber
class node_ship,node_ipa,node_signing,node_asc toneMint
class node_deviceworkflow,node_devicecomms toneRose
class node_developer,node_iphone toneIndigo
```

## Components

### Project workflow

- [ubuntu-ios CLI](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ubuntu-ios): `ubuntu-ios`
- [SDK import](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ubuntu-ios): `ubuntu-ios`
- [Xcode converter](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/xcodeproj2xtool.py): `tools/xcodeproj2xtool.py`
- **xtool adapter**
- **xtool build**

### Build resources

- [Asset compiler](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/actool/main.swift): `tools/darwin-tools/Sources/actool/main.swift`
- [Catalog preparation](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/DarwinAssets/CatalogMerge.swift): `tools/darwin-tools/Sources/DarwinAssets/CatalogMerge.swift`
- [Icon processing](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/DarwinAssets/SingleSizeIcon.swift): `tools/darwin-tools/Sources/DarwinAssets/SingleSizeIcon.swift`
- [Asset symbols](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/darwin-tools/Sources/actool/AssetSymbols.swift): `tools/darwin-tools/Sources/actool/AssetSymbols.swift`
- [Storyboard compiler](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/ibmac.py): `tools/ibmac.py`
- [NIB archive encoding](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/nibarchive.py): `tools/nibarchive.py`
- [NIB key ordering](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/keyorder.py): `tools/keyorder.py`
- [Localized strings](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/xcstringstool): `tools/xcstringstool`
- [Core Data resources](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/momc): `tools/momc`
- [App Intents metadata](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/appintentsmeta.py): `tools/appintentsmeta.py`

### Signing and distribution

- [Ship pipeline](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ship.sh): `ship.sh`
- [IPA packaging](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/ship.sh): `ship.sh`
- [Signing and validation](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/asc.py): `tools/asc.py`
- [App Store Connect](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/tools/asc.py): `tools/asc.py`

### Physical devices

- [Device workflow](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/device-run.sh): `device-run.sh`
- [USB device tools](https://github.com/veloxitynl/ubuntu-ios-toolchain/blob/master/device-run.sh): `device-run.sh`

### Other components

- **App developer**
- **Physical iPhone**

## Connections

- App developer → ubuntu-ios CLI: runs commands (evidence: `README.md`)
- ubuntu-ios CLI → SDK import: imports SDK (evidence: `README.md`)
- App developer → Xcode converter: converts project (evidence: `README.md`)
- Xcode converter → xtool adapter: generates adapter (evidence: `README.md`)
- xtool adapter → xtool build: builds with xtool (evidence: `README.md`)
- ubuntu-ios CLI → xtool build: runs build (evidence: `README.md`)
- ubuntu-ios CLI → Ship pipeline: runs ship (evidence: `README.md`)
- Ship pipeline → Asset compiler: processes resources (evidence: `README.md`)
- Asset compiler → Catalog preparation: prepares catalogs (evidence: `tools/darwin-tools/Sources/actool/main.swift`)
- Asset compiler → Icon processing: compiles icons (evidence: `tools/darwin-tools/Sources/actool/main.swift`)
- Asset compiler → Asset symbols: generates symbols (evidence: `tools/darwin-tools/Sources/actool/main.swift`)
- Ship pipeline → Storyboard compiler: compiles storyboards (evidence: `README.md`)
- Storyboard compiler → NIB archive encoding: writes archives (evidence: `tools/ibmac.py`)
- Storyboard compiler → NIB key ordering: orders archive keys (evidence: `tools/ibmac.py`)
- Ship pipeline → Localized strings: processes strings (evidence: `README.md`)
- Ship pipeline → Core Data resources: compiles resources (evidence: `README.md`)
- Ship pipeline → App Intents metadata: processes intents
- Ship pipeline → Signing and validation: signs and validates (evidence: `README.md`)
- Signing and validation → IPA packaging: packages IPA (evidence: `README.md`)
- IPA packaging → App Store Connect: uploads build (evidence: `README.md`)
- App developer → Device workflow: runs device workflow (evidence: `README.md`)
- Device workflow → USB device tools: uses USB stack (evidence: `README.md`)
- USB device tools → Physical iPhone: communicates with (evidence: `README.md`)
