Help

Preparing your iOS app for designers

xoid lets designers on your team change your real iPhone app on live iPhone previews, and send you their changes as GitHub pull requests. Before they can, a developer does a one-time prep: xoid's Prepare for Designers wizard writes .xoid/ios.json, proves from a fresh clone that the app builds and opens the way designers will get it, and opens a pull request for you to merge. This is version 0 of the guide (plan P4.14). Where something isn't built yet, it says so. Questions: hello@xoid.design.

Related pages: GitHub admin guide for the org admin, and IT guide for setting up designers' Macs.

1. What xoid needs from your app

Need Why
The app is on github.com Designers get it, and share changes, through GitHub. GitHub Enterprise Server and ghe.com aren't supported yet. Without GitHub, you can send a zip or folder (designers use File › Open a Zip from Your Developer…), but they can't share back.
A shared scheme that builds an iPhone app for the simulator xoid builds for the iOS simulator only. It never turns signing off, and build.settings can't set signing settings.
A shape xoid can open An .xcworkspace or .xcodeproj, an XcodeGen project.yml, or a SwiftPM package with an iOS app product. Tuist without a committed project, and a Podfile without committed Pods/, need a developer tool designers don't have.
It builds from a fresh clone Designers get only what's committed. Gitignored files the build needs (for example GoogleService-Info.plist) need a designer-safe copy (step 4 below).
No tools that designers don't have Run Script phases that call swiftlint, swiftformat and similar fail on designers' Macs. The wizard can add a guard (step 5).
A way to open each screen directly A DEBUG-only reader for a launch argument (recommended) or a URL scheme, so xoid can open, say, Checkout without tapping through the app.
Something to show without a real account Most apps start at a sign-in screen. Designers need sample data, or a staging test account.
Approved Swift macros and build plugins Designers' builds only run the macros and plugins you approve, each pinned to its revision in Package.resolved.

Every build xoid runs passes the build setting XOID_DESIGNER=YES, and every launch sets the environment variable XOID_DESIGNER=1 in the app. Use them for designer-only behaviour.

2. Before you start

  • A Mac with Apple silicon, the current App Store Xcode, and xoid.
  • Developer mode: in designer mode, choose View › Developer Tools…. In developer mode, Window › Developer Tools is checked.
  • Signed in to xoid (Account › Sign In…), and in a team. If you're not in one, Account › Make a Team… makes one with you as its developer.
  • GitHub connected (Account › Connect GitHub…), with access to the app's repo. Your GitHub admin must have installed the xoid GitHub App on the repo (GitHub admin guide).
  • The app open in xoid, from a clone of its GitHub repo.

3. Prepare for Designers

Choose File › Prepare for Designers…. The wizard opens on the steps below. It reads any existing .xoid/ios.json and keeps everything it doesn't edit.

App

"Which app should designers open?"

  1. Check the project or workspace xoid found.
  2. Click [Find apps]. It runs xcodebuild -list and -showBuildSettings, which may fetch packages.
  3. Choose the app if there are several. The scheme and bundle identifier come from your choice. The configuration is optional; empty means the scheme's own (usually Debug).

A step for the designers' default iPhone model is coming in a later release.

Screens

"How xoid opens each screen."

  1. Choose how the app is told which screen: "Launch argument (recommended)" or "URL scheme".
  2. Fill in the table: "Route" (starts with /), "Label" (what designers see), "Profile" (optional) and "Arrives when it shows". The table starts from the screens in xoid's Flow.
  3. Or click [Add the screen hook for me]. The assistant adds a DEBUG-only reader and wires your screens into the app's navigation, so -xoidRoute /profile opens Profile. You see the change as a diff with [Keep] and [Undo].

Arrival checks. Every screen needs one. It tells xoid the screen really opened. It's either a label on the screen's text, a heading or a navigation bar (any case), or an accessibility identifier (exact). Leave it empty and the check (below) fills it in from the heading it sees. A screen without one makes the file invalid: "Screen /profile has no arrival check; run Prepare for designers again".

When a screen doesn't arrive, and xoid sees a password field, or a text field with a "Sign in"-like button, it tells the designer the app is at its sign-in screen.

Sample data and sign-in

"Launch profiles designers can choose, and the test sign-ins some of them use."

  • Profiles: a name, a label designers see ("Sample data"), launch arguments, and an optional test account. Pick the "Default profile". Designers choose a profile per preview from a menu like "Sample data ▾".
  • Test sign-ins: an id, a label, and each field with the environment variable your app reads it from, written as field=VARIABLE, …. Only names go in the file, never values.
  • [Add sample data for me] asks the assistant for DEBUG-only sample data for the default profile, with no network or sign-in, in one Swift file designers may edit.

Sample data is the better choice: it works for every designer with nothing to set up. With a test sign-in, each designer enters the values once on their Mac ("Add test sign-in…"). xoid keeps them in that Mac's Keychain and passes them to the app as environment variables. They're never committed or written to logs. Use staging accounts only.

Add-ons and private files

Click [Build from a fresh clone]. xoid builds the committed app from a fresh clone, as designers will, and lists:

  • Macros and build plugins that must be enabled. [Approve for designers] pins each to its package's revision in Package.resolved (build.trustedAddOns). If that revision changes later, designers' builds stop until you approve again.
  • Private files the build can't find ("Build input file cannot be found"). [Choose a designer-safe copy…] copies the file you pick into .xoid/designer-files/ and maps it to the real path (build.designerFiles). xoid copies it in before each designer build. Use a copy with no production keys.

Lint scripts

The wizard lists Run Script phases that run swiftlint, swiftformat, swift-format, sourcery, rubocop, danger or periphery. [Add the guard for me] asks the assistant to make this the first line of each:

if [ "$XOID_DESIGNER" = "YES" ]; then exit 0; fi

Designers' builds skip the phase; yours still run it.

Assistant

"May xoid's assistant read this app's code for your designers?" This is your team's setting, and xoid's backend enforces it on every request. Without it, designers see "The assistant isn't turned on for this app yet".

Choose where code may go:

Choice Meaning
"Only providers that keep nothing (recommended)" Zero data retention: the provider doesn't store requests or train on them.
"Providers that don't train on it" They may keep requests for a while (for abuse checks), but never use them for training.

Then click [Turn on the assistant] (or [Save this setting] to change it). Only your team's developers can change it. xoid records who turned it on and when, and writes the same setting into .xoid/ios.json (assistant.consent). If the two ever differ, Review shows "Assistant setting in this app doesn't match your team's". Designers see a one-time notice saying who turned it on. More in Privacy.

Check

[Run the check] runs xoid check --clean-clone with your changes: a fresh clone of the committed app plus your uncommitted changes, the designer build, and every screen opened on an iPhone of its own. Steps stream in as ✓ or ✗.

  • Screens without an arrival check are opened anyway, and the heading each one shows becomes its arrival label.
  • A pass writes preparedWith: the xoid and Xcode versions, the date, the clean build time and your Mac's class (for example M3-16GB). Designers' first-build estimates come from it.
  • Any later edit means running the check again.

Review

The validator's problems, and a line diff of .xoid/ios.json against the one you had. Click [Save ios.json].

Share

[Open the pull request] commits .xoid/ and the changes you kept to the branch xoid/prepare-for-designers, pushes it (never forced), and opens the pull request "Prepare app for xoid designers" into your base branch. Your own branch, index and working tree aren't touched. The private files themselves stay out; their designer copies go in.

The pull request lists the screens and their arrival checks, the launch profiles, the approved add-ons and their revisions, the designer copies, the assistant setting, and the check result. If the check didn't pass with these changes, it says to run xoid check --clean-clone before merging.

If xoid/prepare-for-designers is already on GitHub, xoid won't overwrite it ("xoid/prepare-for-designers is already on GitHub"). Merge or delete the earlier one, then share again.

Merge the pull request, then invite your designers (section 5).

4. What goes in .xoid/ios.json

The full field list is in docs/design-harness.md in xoid's repo. The parts the wizard doesn't edit, you edit by hand; the wizard keeps them.

Field Set by What it does
app App Container, scheme, configuration, bundle id
routes Screens How screens open, and the screen table with arrival checks
launch Sample data and sign-in Profiles and the default profile
testAccounts Sample data and sign-in Test sign-in field names and environment variables, never values
build.trustedAddOns Add-ons and private files Approved macros and plugins, pinned
build.designerFiles Add-ons and private files Designer-safe copies and where they go
assistant.consent Assistant The team's assistant setting
preparedWith Check What the check passed with
build.secretFiles By hand Files designer mode never reads, so they never reach the assistant
editablePaths By hand Globs of the files designers' changes may touch
share By hand baseBranch, branchPrefix (default design/), reviewers, labels, backup, include, exclude
build.settings, build.xcode, build.optionalSubmodules By hand Extra build settings, the Xcode range, submodules designers can do without

Some fields:

  • build.secretFiles: list xcconfigs or other files holding keys, as paths relative to the repo. Designer mode already never reads .env*, *.p12, *.p8, *.pem, *.mobileprovision, *.keychain*, .netrc, GoogleService-Info.plist and the designer files. xoid can find secret-looking files, but the wizard doesn't list them for you yet.
  • editablePaths: for example ["Acme/Features/**", "Packages/DesignSystem/**"]. When set, designer mode refuses changes anywhere else. Designers can never change the Xcode project or workspace, Package.swift, Package.resolved, Podfile*, entitlements, .github/**, .xoid/ios.json or .xoid/designer-files/**, with or without it.
  • share.reviewers and share.labels: who's asked to review designers' pull requests, and their labels.
  • share.backup: false turns off designers' backups to GitHub for this app (section 6).

Protect the file with CODEOWNERS so only the iOS team can change it:

# .github/CODEOWNERS
/.xoid/ios.json            @acme/ios
/.xoid/designer-files/     @acme/ios

5. Inviting designers

Designers join your xoid team through an invite. One email, from hello@xoid.design, with one HTTPS link (https://xoid.design/i/<code>). They sign in with that email and a 6-digit code; there are no passwords. Invites last 30 days.

From the wizard. In the Share step, under "Invite designers", type an email and click [Invite by email]. The invite is for a designer and names this app, so xoid opens it for them after they sign in. [Copy invite link] copies the link to send yourself.

From the Team sheet. Account › Team… (developer mode, developers only):

  • Invite someone: "Their work email", "As" Designer or Developer, "App to open for them (optional)" (github.com/<org>/<repo>), "App name in the email (optional)", then [Send Invite].
  • Invites: each with its state ("Invited 2 days ago"), and [Copy Link], [Resend Invite], [Withdraw].
  • Members: each with what they've spent of their allowance this month, [Set Allowance] and [Remove].
  • Models: "Models your team can use" (OpenRouter ids) and "The one designers use".
Role Can do
Designer Design in designer mode, use the assistant up to their allowance, share Drafts
Developer Everything a designer can, plus invite and remove members, set allowances and models, and turn on the assistant. A team always keeps at least one developer.

Allowances. Each member has a monthly assistant allowance. New members get the team's default, $40 a month, and you can raise it for each of them with [Set Allowance]. When a designer reaches it, they see "You've used this month's assistant allowance", with a request to copy for you. It starts again on the first of the next month. Each person can see their own use under Account ("Assistant this month: $12 of $40").

Notes:

  • Someone already in another xoid team can't be invited to yours.
  • A team can send 50 invite emails a day.
  • If an email doesn't arrive, copy the link and send it yourself.
  • Designers also need GitHub access to the repo: write access, and the xoid GitHub App installed on it (GitHub admin guide). Designers without a GitHub account get a guided path in xoid ("I Don't Have a GitHub Account").

6. What a designer's share looks like on GitHub

Designers work in Drafts. When they choose File › Share with Developer… (⇧⌘E), xoid checks that their changes build on their own from a clean worktree, takes before and after pictures, pushes the Draft, and opens a pull request. Designers see this from their side in How your changes reach developers.

Branches

Branch What it holds
design/<login>/<topic> The Draft: one commit per share. The topic comes from the Draft's name or the share's title, and gets -2, -3… if someone else's branch has the name. It's kept for later shares.
design/<login>/<topic>--review-assets The pull request's before and after pictures, under xoid-review/<share>/. Kept so old reviews keep their pictures.
design/<login>/<topic>--autosave The Draft's backup: its unshared work, pushed after a successful build, at most every 15 minutes.

design/ is share.branchPrefix, and <login> is the designer's GitHub login. Before a Draft is shared or backed up, it lives only on the designer's Mac (as design/local/…).

xoid never force-pushes, and never pushes to your default branch, a protected branch, tags, or any other name. It refuses a share whose changes touch .xoid/ios.json, .github/** or a designer file's real path.

The commit

  • Authored by the designer, as their GitHub name and <id>+<login>@users.noreply.github.com.
  • Message: "Design: " and the title, the bullet list of changes, "Shared from xoid by Dana Lee (designer).", "Hooks not run; your CI checks this change." and a trailer Xoid-Draft: design/<login>/<topic>.
  • Git hooks aren't run; your CI checks the change.
  • Left out: .xoid/ios.json, .xoid/tokens.json, .xoid/local/**, every designer file's real path, and share.exclude (by default .xoid/ui/**, .xoid/project.json and .xoid/.gitignore), less anything in share.include. .xoid/flow.json goes in only when it changed.

The pull request

Into share.baseBranch (else the repo's default branch), with the reviewers and labels from share. "Allow edits by maintainers" is off.

  • What changed: who shared it, the changes in design words, and the designer's note.
  • Screens: a table of before and after pictures per screen, device and appearance. With no live previews there are no pictures and no table. "Before picture not available" where there isn't one.
  • For the developer: the files changed; what it was built with ("Xcode 27.1 (27A9275), iPhone 17 Pro, Debug"); "Clean build passed in xoid at … for commit …"; and "Git hooks were not run; your CI checks this change."

A later share adds a commit to the same branch and pull request, and posts that share's pictures as a comment.

Backups

Backups are on unless share.backup is false in .xoid/ios.json. Designers see their state in the status bar ("Backed up to GitHub · 10 min ago", "Only on this Mac", "Backup paused"); with backups off it reads "Saved on this Mac only (your team turned off backups)". A designer on a new Mac uses File › Drafts › Open a Draft from Another Mac…, which restores the Draft with its History.

Signed commits

If your rules require signed commits on the Draft's branch (required_signatures), or share.commitMethod is github-api, xoid doesn't share yet. The designer sees "This app only accepts verified changes, which xoid can't send yet". Sending commits through GitHub's API, which signs them, is coming in a later release. See the GitHub admin guide.

7. Build reports from designers

When a designer's build fails for a reason that's yours to fix (a missing private file, an unapproved add-on, a developer tool, the app not ready for this Xcode, the app not building before their change), their card offers to send you a report. When the team has other developers, the button names them ("Send to Sam", or "Send to your developers" for several) and xoid sends it. Without one, it's [Save report for your developer…], which saves the zip, xoid-build-report-<org>-<repo>-<time>.zip, for them to send you. The zip holds:

File What it holds
README.txt What happened, who should look, the first errors, and the command to reproduce from a clean clone
build-results.json Xcode's build results
log-tail.txt The end of the build log
environment.json xoid, macOS, the Mac, Xcode and the iPhone software
repo.json The remote, the commit, the last version that built, changed files, and the SHA-256 of .xoid/ios.json
changes.patch The designer's changes since the last version that built, if any

It's redacted, and xoid refuses to save it if a token, private key or AWS key is left.

A sent report emails each other developer on the team: "Dana sent you a build report for Acme iOS", with the first error and a link. The link opens the report in xoid, which downloads the zip. Help › Reports from Designers… (in developer mode) lists everything sent to you. Only the team's developers and the sender can download a report. Reports are deleted after 90 days.

Designers' side: When something goes wrong.

8. xoid check --clean-clone

The same check the wizard runs, from Terminal or a Mac CI runner:

/Applications/xoid.app/Contents/MacOS/xoid check --clean-clone
Option Meaning
--clean-clone Check the committed app in a fresh clone (what designers get)
--repo <folder or https URL> The app's folder or URL (default: the current folder)
--ref <ref> The branch, tag or commit to check (with --clean-clone)
--json <file> Also write the result as JSON
--no-launch Build only; don't open each screen

What it does:

  1. Checks the Mac (Apple silicon) and picks a supported Xcode.
  2. Clones into ~/Library/Caches/xoid/check/.
  3. Validates .xoid/ios.json, and checks the app is prepared.
  4. Builds with the designer pipeline: copies designer files, and trusts only the approved add-ons.
  5. Installs the app on its own iPhone (xoid - check - iPhone 17 Pro), opens every screen with its profile, and waits up to 30 seconds for each arrival check.
  6. Removes the iPhone and the clone, whatever happened.

Test sign-ins come from environment variables, by the names in testAccounts[].env (for example CI secrets). The check never reads the Keychain, and leaves the values out of its report.

Exit code Meaning
0 Passed
1 The check failed; each failed step names its category
2 It couldn't run here: not Apple silicon, no supported Xcode, no iPhone software, a Mac setup problem, or a wrong option

Progress and ✓/✗ lines go to stderr, the summary to stdout. The JSON looks like this:

{"version": 1, "xcode": "27.1 (27A…)",
 "steps": [{"name": "build", "ok": false, "category": "private-file-missing", "detail": "…"}],
 "warnings": [], "cleanBuildSeconds": 61}

Categories include private-file-missing, designer-file-conflict, add-ons, developer-tool, access, xcode-version, build-error, network, not-set-up, invalid-profile, out-of-date, install-failed, launch-failed, screen-not-reached, login-wall, test-sign-in-missing, large-files and clone-failed. A clone that fails says who fixes it: access, network, large-files or mac-setup, else clone-failed. A moved add-on revision fails with "Run Prepare for Designers › Add-ons again."

Run it after changes that could break designers: a new package or macro, a renamed scheme, a new private file, a changed screen. A ready-made GitHub Action is coming in a later release.

9. When .xoid/ios.json is newer than a designer's xoid

The file has a version. Today's xoid reads version 1. If a newer xoid writes a higher version, an older xoid won't open the app. The designer sees "This app was set up with a newer version of xoid", "Update xoid to open it.", and the validator says version: 2 is newer than this xoid reads (1).

What to do:

  • Make sure designers have a xoid at least as new as yours. Don't lower version by hand.
  • xoid can't update itself yet: [Check for xoid update] tells the designer to ask whoever gave them xoid for the newest version. Send them the newest version from https://xoid.design, or, on managed Macs, ask IT to install it (IT guide).
  • preparedWith on a different Xcode is only a warning, in developer mode and in xoid check. Designers see "out of date" only when something concrete fails, such as a missing scheme or file.

10. Help

11. Web apps

A web app is prepared the same way, with .xoid/web.json in place of ios.json: how the app runs (Vite, npm's lockfile, the app's folder in a monorepo), its screens (a route table or where to read the router), its tokens (a CSS-variables file or Tailwind), which files designers may change (editablePaths), add-ons whose install scripts are trusted, and the share section (base branch, reviewers, labels). The file's every field, the readiness states a designer sees ("Prepared", "Not set up yet", "Needs your developer's help", "Your developer's setup has a mistake") and the Inspector's parity table are in docs/design-harness.md in xoid's repo, under .xoid/web.json. A designer's xoid installs the add-ons with the Node it ships (scripts off, from registry.npmjs.org or the Mac's proxy), starts the dev server itself, and before a share type-checks (tsc -b --noEmit) and builds (vite build) the frozen commit in a clean worktree; "Clean check passed" in the pull request means both passed with no formatter run. The in-app Help's "Preparing a web app for designers" is the short version of this section.