Skip to content

appitool iOS build type, v1 ​

Build type URI: https://appitool.appibara.com/buildtypes/ios/v1
Status: Stable. Emitted by appitool flow ios --attest; changes follow Versioning.
Predicate type: SLSA Provenance v1 (https://slsa.dev/provenance/v1)

This build type describes an iOS app archive (.ipa) built and exported by appitool with appitool flow ios. A provenance statement with this buildType says: this IPA was built by appitool, from this source, with these parameters, by this builder.

The statement is signed with Sigstore and stored as a Sigstore bundle (for example MyApp.ipa.sigstore.json). It is separate from Apple code signing: the IPA keeps its Apple signature, and this attestation describes how the IPA was produced.


Subject ​

  • The exported .ipa is the first subject. name is its file name; digest holds its sha256.
  • When appitool exports debug symbols, the .dSYM.zip may be a second subject, in the same form.
  • Digests are of the final files, after Apple code signing and export.

External parameters ​

Inputs chosen by whoever started the build. Verifiers should compare these with what they expect. Every field is a string unless noted.

  • command (required): always flow ios.
  • distribution (required): appstore, adhoc or development, as given to -d, --distribution.
  • bundleId (required): the app's bundle identifier, given with -b, --bundle-id or detected from the Xcode project.
  • scheme (required): the Xcode scheme built, given with -s, --scheme or inferred.
  • configuration (required): the build configuration, for example Release, given with -c, --configuration or inferred.
  • source (required, object): the source that was built.
    • repository (required): the repository URL, for example https://github.com/acme/myapp.
    • ref (optional): the git ref that was checked out, for example refs/tags/v1.2.0 or refs/heads/main.

External parameters never contain credentials: no App Store Connect keys, Match passwords, git tokens or webhook URLs.


Internal parameters ​

Values appitool derived during the build. They are informational: useful for auditing and reproducing a build, but verifiers should not base trust decisions on them.

  • version (required): the marketing version (CFBundleShortVersionString).
  • buildNumber (required): the build number appitool assigned (CFBundleVersion), computed as the latest remote build number or the project's, whichever is higher, plus one.
  • exportMethod (required): the Xcode export method: app-store-connect, release-testing or debugging.
  • teamId (optional): the Apple Developer Team ID that signed the archive.
  • xcodeVersion (optional): the Xcode version used, for example 26.1.
  • releaseTag (optional): the git tag appitool creates for the release, for example šŸ_1.2.0_42.

Resolved dependencies ​

Each entry is an in-toto resource descriptor.

  1. Source (required): the commit that was built.
    • uri: git+<repository>@<ref>, for example git+https://github.com/acme/myapp@refs/tags/v1.2.0.
    • digest: { "gitCommit": "<40-character commit SHA>" }.
  2. appitool (required): the appitool that ran the build.
    • name: appitool.
    • uri: https://github.com/appibara-ltd/appitool/releases/tag/v<version>, for example https://github.com/appibara-ltd/appitool/releases/tag/v0.11.10.
    • digest (optional): { "sha256": "<SHA-256 of the appitool executable>" }.

The uri identifies the appitool release that ran the build. appitool's releases carry their own Sigstore-signed provenance, but it covers the release archives (appitool-*.tar.gz), not the extracted executable, so the executable's sha256 identifies the binary that ran and cannot be checked against that provenance directly.


Builder ​

runDetails.builder.id names who ran the build and stands behind the statement. For keyless signing it must match the identity in the Sigstore signing certificate.

  • Your own CI (GitHub Actions): the workflow that ran appitool, https://github.com/<owner>/<repo>/.github/workflows/<file>@<ref>. The signing certificate is issued to that same workflow. This proves which repository's CI built the IPA. "Built with appitool" is that workflow's claim, which you can audit by reading the workflow file at that ref.
  • Your own CI, signed with a private key (--attest --attest-key): the same builder.id, but the bundle carries a public key instead of a certificate, and an RFC 3161 timestamp instead of a transparency log entry. The workflow named in builder.id is then the key holder's claim, not something the signature proves; verifiers trust whoever holds the key (appitool attestation verify --key).
  • nativeflow build service: https://nativeflow.app/builder/v1. nativeflow builds in an isolated job and signs with its own identity, so the statement is backed by nativeflow rather than by the app's own CI.

runDetails.metadata should hold invocationId (for GitHub Actions, the run URL with its attempt), startedOn and finishedOn.


Example ​

json
{
  "_type": "https://in-toto.io/Statement/v1",
  "subject": [
    { "name": "MyApp.ipa", "digest": { "sha256": "9f2c…" } }
  ],
  "predicateType": "https://slsa.dev/provenance/v1",
  "predicate": {
    "buildDefinition": {
      "buildType": "https://appitool.appibara.com/buildtypes/ios/v1",
      "externalParameters": {
        "command": "flow ios",
        "distribution": "appstore",
        "bundleId": "com.acme.myapp",
        "scheme": "MyApp",
        "configuration": "Release",
        "source": {
          "repository": "https://github.com/acme/myapp",
          "ref": "refs/tags/v1.2.0"
        }
      },
      "internalParameters": {
        "version": "1.2.0",
        "buildNumber": "42",
        "exportMethod": "app-store-connect",
        "teamId": "ABCDE12345",
        "xcodeVersion": "26.1",
        "releaseTag": "šŸ_1.2.0_42"
      },
      "resolvedDependencies": [
        {
          "uri": "git+https://github.com/acme/myapp@refs/tags/v1.2.0",
          "digest": { "gitCommit": "a1b2c3…" }
        },
        {
          "name": "appitool",
          "uri": "https://github.com/appibara-ltd/appitool/releases/tag/v0.11.10",
          "digest": { "sha256": "7e41…" }
        }
      ]
    },
    "runDetails": {
      "builder": {
        "id": "https://github.com/acme/myapp/.github/workflows/release.yml@refs/tags/v1.2.0"
      },
      "metadata": {
        "invocationId": "https://github.com/acme/myapp/actions/runs/123456789/attempts/1",
        "startedOn": "2026-11-30T10:00:00Z",
        "finishedOn": "2026-11-30T10:14:00Z"
      }
    }
  }
}

Verifying ​

A JSON Schema for the external and internal parameters is published next to this page.

  1. Verify the attestation with appitool attestation verify, which uses sigstore-swift:
bash
appitool attestation verify -f MyApp.ipa \
  --bundle MyApp.ipa.sigstore.json \
  --repo acme/myapp \
  --signer-workflow acme/myapp/.github/workflows/release.yml \
  -b com.acme.myapp -d appstore

This checks the Sigstore signature against Sigstore's trusted root, that the statement's subject is the file's sha256, that the predicate type is SLSA provenance v1, and that the signing certificate was issued to the given workflow in the given repository. -b also checks that buildType is https://appitool.appibara.com/buildtypes/ios/v1, and with -d that the external parameters name bundleId and distribution; external parameters this spec does not define are rejected. Without --bundle, appitool fetches the attestation from the repository's GitHub attestations instead.

  1. Check any other external parameters you care about, such as source.repository.
  2. Optionally, check that the appitool version in resolvedDependencies is one you trust. appitool's release archives can themselves be verified with appitool attestation verify -f appitool-<platform>.tar.gz.

Any Sigstore verifier can check the signature and signer, for example gh attestation verify MyApp.ipa --bundle MyApp.ipa.sigstore.json --repo acme/myapp --signer-workflow acme/myapp/.github/workflows/release.yml; check buildType and the external parameters yourself afterwards.

The App Store re-signs and encrypts apps before delivering them, so for appstore builds this attestation covers the IPA you built and uploaded, not the copy installed from the App Store. An IPA distributed directly (adhoc or development, for example through Firebase App Distribution) can be checked byte for byte.


Versioning ​

  • This page describes v1, which is stable: the meaning of its fields will not change.
  • New optional fields may be added to the internal parameters of v1.
  • The external parameters of v1 are fixed: verifiers should reject external parameters they do not recognise, so adding one requires a new version.
  • Renaming or removing a field, or changing what a field means, requires a new build type at …/ios/v2. This page stays online so older attestations can still be read.

Changelog ​

  • v1: declared stable, with the same fields as the draft.
  • v1 (draft): first version.

Released under the MIT License.