xoid for IT: setting up a designer’s Mac
xoid lets designers change a team's iPhone app on real iPhone previews on their own Mac. It uses Apple's free Xcode. Xcode needs administrator steps that a designer with a standard account can't do: install Xcode, accept Apple's licence, and run Xcode's first launch. First launch has to run again after every Xcode update.
This page covers both ways to do that for them. It's version 0. It's published at xoid.design/docs/it-guide, and a later version adds an installer package and more MDM examples.
The kit is inside every copy of xoid, in /Applications/xoid.app/Contents/Resources/it-kit/:
| File | What it does |
|---|---|
xoid-helper-approval.mobileconfig |
Pre-approves the xoid Setup Helper, so xoid finishes Xcode's setup itself, with no prompt, after every Xcode update |
xoid-xcode-setup.sh |
Does Xcode's setup once, run as root from your MDM; run it again after Xcode updates |
1. Install xoid
- Admins: copy
xoid.appfrom the xoid disk image into/Applications. It's signed with a Developer ID (Jay Goggin, Team ID4MPKTQXYGH) and notarized by Apple. - Managed Macs: deploy
xoid.appto/Applicationsas you do other apps. A signed installer package for IT comes with P4.09. - Updates: xoid updates itself where the account can write
/Applications/xoid.app. Otherwise you update it the same way you installed it (D-32): the designer's Check for Updates gives them a note to send you, andhttps://xoid.design/updates/latest.jsonnames the newest version and its DMG. A release marked critical (a fix for an Xcode Apple just shipped) shows designers a banner with a Restart button instead of waiting for them to quit; on copies you installed, that is the moment to install the new DMG.
2. Install Xcode
Install Xcode from the Mac App Store, or assign it through Apple Business Manager (Apps and Books). Keep App Store updates of Xcode on: xoid follows the Xcode the App Store currently ships.
3. Finish Xcode's setup: choose one
A. Let xoid do it (recommended)
Deploy xoid-helper-approval.mobileconfig as a device profile. It's a managed login item (com.apple.servicemanagement) with two rules:
- Team ID
4MPKTQXYGH; - label
dev.xoid.setup-helper.
The xoid Setup Helper then runs without the designer switching it on in System Settings. It does exactly one thing: run Xcode's first launch, as root, for Apple's own Xcode in /Applications, after the designer has read Apple's licence in xoid. Its checks are in xoid's security notes (docs/security/setup-helper.md).
B. Run the script yourself
Run, as root (from your MDM, or with sudo), after installing Xcode and after each Xcode update:
xoid-xcode-setup.sh --accept-xcode-license --ios-runtime
| Option | Meaning |
|---|---|
--xcode <path> |
The Xcode to set up (default /Applications/Xcode.app) |
--accept-xcode-license |
Accept Apple's Xcode licence for the designer, as your organisation's documented acceptance. Without it, an unaccepted licence stops the script. |
--ios-runtime |
Also download the iPhone software (the iOS simulator runtime this Xcode builds for, about 8 GB) |
The script:
- checks that the Xcode is signed by Apple or the Mac App Store;
- never changes the Mac's selected Xcode;
- skips whatever is already done (a second run finishes in under a second).
| Exit code | Meaning |
|---|---|
| 0 | Done, or nothing to do |
| 2 | Apple's licence isn't accepted, and --accept-xcode-license wasn't given |
| 3 | Not run as root |
| 4 | No Xcode at the path |
| 5 | That Xcode isn't signed by Apple or the Mac App Store |
| 6 | xcodebuild -runFirstLaunch failed |
| 7 | The iPhone software download failed |
| 64 | A wrong option |
4. Network
xoid and Apple's tools reach these hosts:
- Apple:
download.developer.apple.comanddevimages-cdn.apple.com(Xcode components and the iPhone software). - GitHub:
github.com,api.github.com,codeload.github.comandobjects.githubusercontent.com(the team's app and its packages). - npm:
registry.npmjs.org(a web app's add-ons, fetched by the Node xoid ships; PW.02). Behind a proxy it uses the Mac's proxy settings and the company roots, as below. - xoid:
xoid.design,signin.xoid.design,cognito-idp.us-west-2.amazonaws.com, and xoid's services on*.lambda-url.us-west-2.on.aws.
Behind a proxy or HTTPS inspection, xoid uses the Mac's proxy settings and the company root certificates in the system keychain. Apple's downloads fail on networks that inspect HTTPS unless they're exempted.
5. Windows
xoid for Windows (PW.12) is for web apps only: iPhone previews need a Mac with Apple silicon, and a designer opening an iPhone app on Windows is told so. Everything else (sign-in, GitHub, the assistant, Share) works the same.
- Install:
xoid-<version>-setup.exefromhttps://xoid.design/download(the newest is listed athttps://xoid.design/updates/latest-windows.json). It is a per-user Inno Setup installer: it needs no administrator, installs to%LOCALAPPDATA%\Programs\xoid, registersxoid://links underHKCU\Software\Classes\xoid, and its uninstaller leaves the person's projects (under%USERPROFILE%\xoid) alone. For a fleet, run it with/VERYSILENT /SUPPRESSMSGBOXES /NORESTARTin each user's session, or wrap it for Intune; a machine-wide MSI is not provided. - Signing: xoid.exe, its libraries and the installer carry an Authenticode signature from xoid's Microsoft Artifact Signing certificate. SmartScreen may still warn on a new release until it has seen enough downloads; xoid never asks anyone to turn SmartScreen off.
- Updates: xoid checks
https://xoid.design/updates/appcast-windows.xmlevery 6 hours and runs the next installer silently when the designer agrees; an update marked critical arrives at once. There is no per-user "early versions" switch on Windows: a beta build follows the beta feed. - Hosts: as §4, plus nothing new. The bundled Node fetches a web app's add-ons from
registry.npmjs.orgthrough the Windows proxy settings. - Not yet on Windows: the credential broker for private GitHub apps and the bundled git (PW.12b), so a Windows designer can open the New Project templates and public or already-cloned apps; the OneDrive folder rules come with the same package.