This guide shows how to build pages of a mobile app with the build loop. It works like a web page build. The difference is where the checks run: on an iOS simulator, in the UnifyApps Preview app.
Before you start
A folder set up with
/ua:setup.A mobile app on your tenant. The build loop adds to an app that exists. For a new app, start with
/ua:scope-loop.A Mac with macOS 15 or later, Xcode 26 or later, Homebrew, and about 20 GB of free disk. The checks run on iOS simulators.
The UnifyApps Preview app's iOS simulator build. It must be a release build, not a development build. Setup cannot download it for you.
Optional: a Figma link, a prototype or screenshots of the screens.
In Codex, type
$ua:build-loop. In Copilot CLI, ask in words.
Get your Mac ready
The checks need Xcode, the iOS 18.6 simulator and the UnifyApps Preview app. The Preview app runs your draft pages, so you can see them before anything is published.
The first time, UnifyApps Headless checks what is missing. It installs only what you tick. Until a required tool is there, a run that needs a device waits.
What | Who does it |
|---|---|
Xcode 26 or later. Open it once and accept the license. | You, from the App Store |
Homebrew | You, from brew.sh |
The iOS 18.6 simulator: about 8 GB, 10 to 30 minutes | Setup, after your tick |
Rosetta, on an Apple silicon Mac | Setup, after your tick |
The tools that drive the simulators | Setup, after your tick |
The simulators: about 1.5 GB of disk each | Setup, after your tick |
The Preview app's simulator build | You give the file, or an https link to it |
Simulators run side by side. You get about 1 for every 2 GB of memory above 10 GB. A 24 GB Mac with 8 performance cores runs 7.
Note: A new app must be published once before its draft opens in the Preview app.
Build the pages
Step 1: Open your agent in the solution's folder
Use the folder you set up for this solution.
Step 2: Ask for the screen or feature
Type /ua:build-loop and say what to build. Name the app if the solution has more than one.
/ua:build-loop Build the Leave screen of the Leave Manager app from this Figma: <link>
/ua:build-loop In the Leave Manager app, notify the manager when a request is submitted
Step 3: Answer the start questions and approve the plan
It asks its questions at the start. Then it shows a plan of every page and part it will build. Nothing is built until you say yes.
Step 4: Let it build and check on the simulator
Builder agents build the parts, often side by side. The first run asks you to sign in once on one simulator, as the test user. The other simulators copy that sign-in. The agent never types a password. Then it checks each page on a simulator:
Looks: each page is compared with the design.
Touch: buttons and other controls react when you tap them.
Loading: while data loads, the page shows a placeholder. No part stays blank, and nothing jumps when the data arrives.
Your asks: for a feature, each thing you asked for is tried on the device. "Realtime" asks are checked with two devices. This needs a second test user.
When a check fails, it fixes the problem and checks again.
Step 5: Look at the pictures
When the last change is done, it takes a picture of every page it built, top to bottom. When it built from a design, the design is shown first.
What you get
The pages, built as drafts.
A picture sheet for every page, opened for you.
A summary of what exists now, what passed, and anything still open.
Warning: The build loop never publishes your app. The Preview app runs the drafts. A store build or test build runs the published app. So publish only when that build should get the new pages.
Note: Some asks cannot be proven on a device. The summary marks them "not proven on a device". It shows the proof it read back from the platform instead. Push notifications are one of them: the simulators cannot get them. Check them on a real phone.
Note: The test loop does not cover mobile apps. To check a finished mobile app, use the review loop.
See it on your own phone
Install the UnifyApps Preview app from TestFlight (iPhone) or Google Play (Android). In the app builder, open the app's Preview QR code and scan it. Pick Draft.
Icons, push and store builds
These need things only you can get. Have them ready before you ask.
Icons and splash screen: a PNG logo at least 1024 px wide, in the solution folder. The icon files become public links.
Push notifications: a Firebase project number and a service-account key file from a Firebase admin. Save the key file in the folder. Never paste it in chat. For iPhones, upload an APNs key in Firebase yourself.
Store accounts: usually the customer's Apple Developer account (99 USD a year) and Google Play account (25 USD once), with you invited as Admin. Only the Apple Account Holder can turn on App Store Connect API access.
Before the first store build: publish the app, and set the icon, splash and push. An over-the-air update cannot change them later. The bundle id cannot change after a store release.
First builds: the first Android build is uploaded by hand in Play Console. iPhones install only through TestFlight.
Signing keys: download a copy and keep it safe.
Some tenants cannot set up push or make builds from chat yet. Then it tells you to use the app builder.
Next steps
Review loop: Review the mobile app before a demo or go-live.
Repair loop: Fix a mobile page that is wrong.
Scope loop: Plan a new mobile app and its tickets.