Real builds

Streakly for iPhone: a native SwiftUI app from one prompt, built in 8 minutes 17 seconds

The iPhone half of our Streakly build: one prompt, a one-time Xcode setup, BUILD SUCCEEDED on the first try and a SwiftUI app in the real iOS Simulator.

Apirex Team30 November 20269 min readiOS
Streakly for iPhone: a native SwiftUI app from one prompt, built in 8 minutes 17 seconds
On this page
  1. We sent the Android prompt to an iPhone project
  2. The plan: SwiftUI, Swift Charts and SF Symbols
  3. One-time setup: Xcode and an 8.32 GB Simulator runtime
  4. An app icon, then nine Swift files
  5. BUILD SUCCEEDED on the first xcodebuild
  6. The real iOS Simulator, inside the builder
  7. Queue a change while it is still building
  8. iOS Visual Edit: point at it in the Simulator
  9. A Today redesign and a Coach tab
  10. On the home screen, like any other app
  11. The numbers
  12. What is next
  13. Frequently asked questions
  14. Try it

This is the second half of a two-part build. Earlier today we built Streakly, a habit tracker, as a native Android app and wrote up every step. Then we built it again for iPhone: Swift and SwiftUI, a real Xcode project, built on an Apple Silicon Mac on 30 November 2026. The run took 8 minutes 17 seconds of building and 3.83 Rex Credits, and the first xcodebuild printed BUILD SUCCEEDED.

It did not go perfectly, and we left the rough parts in. The biggest one happened before a single file existed: we sent the wrong prompt.

Streakly, a native SwiftUI habit tracker, running in the real iOS Simulator inside the Apirex builder next to the chat
Streakly for iPhone in the real iOS Simulator, streamed into the builder. Three of four habits ticked.

We sent the Android prompt to an iPhone project

We picked the iOS · Swift tab on the dashboard and pasted our prompt. It was the Android prompt, word for word. The first line still said "a native Android habit tracker (Kotlin + Jetpack Compose, Material 3, data saved on the device)". We only noticed when we read the reply.

Apirex prompt box with the iOS Swift tab selected and the Android Streakly habit tracker prompt pasted in
The iOS · Swift tab is selected. The prompt still asks for Kotlin and Jetpack Compose.

Apirex did not try to squeeze Kotlin into an iPhone project, and it did not stop to complain either. Its first message read: "This project is set up for native iPhone only, so I can't produce Kotlin/Compose here. I'll plan Streakly as a native SwiftUI iPhone app with the same screens, style and on-device data." It also said what it would change: SF Symbols instead of emoji for the habit icons, a flame icon for streaks, and a Codable JSON file on the device for storage.

Apirex chat explaining the project is native iPhone only and planning Streakly as a SwiftUI app instead of Kotlin
Apirex explains the mismatch, then plans a SwiftUI app with the same screens and on-device data.

To be precise about what happened: Apirex did not convert an Android app. Each platform is its own project with its own source. The iPhone version was planned and written from scratch in Swift, using our prompt as the description of the idea. If you want something specific for iPhone, such as SwiftData for storage, write an iPhone prompt and say so.

The plan: SwiftUI, Swift Charts and SF Symbols

The plan was titled "Streakly SwiftUI Habit Tracker". Scope: iOS 17 and later, data stays on the device, no accounts and no backend. Style: white background, green accent #32C35A, rounded cards and big rounded numbers in SF Pro Rounded. Screens: Today with an animated progress ring, Add habit as a sheet with a symbol grid and weekday chips, Habit detail with a 12-week heatmap, and Stats with a bar chart built in Swift Charts. First launch would seed four habits with about five weeks of history.

Apirex plan for the Streakly SwiftUI habit tracker listing scope, style, screens and data before any code is written
The full plan: scope, style, four screens and the data model, with an Approve plan button.

One-time setup: Xcode and an 8.32 GB Simulator runtime

iPhone builds need a Mac with Xcode installed. This was the first iOS project on this Mac, so the Apirex Local Agent checked the Apple tools before anything else. It found Xcode and printed "Xcode 27.2 detected at /Applications/Xcode.app, preparing only the iPhone tools". Then it downloaded the matching iOS 27.2 Simulator runtime, 8.32 GB, with live progress in the Terminal window.

Apirex Local Agent detecting Xcode 27.2 and downloading the iOS 27.2 Simulator runtime on a Mac
First iOS project only: the Local Agent finds Xcode and fetches the iPhone Simulator runtime.

On our connection the download took a little over 20 minutes. That wait happens once per Mac. When it finished, the agent verified the Simulator and reported: "Connected, Apirex confirmed that this Mac is ready to build your iOS app." The next iOS project starts in seconds.

Apirex Local Agent confirming Xcode and the iPhone Simulator are verified and the Mac is ready to build an iOS app
Apple tools verified. The Mac is ready for iPhone builds.

An app icon, then nine Swift files

The build started with the project files: project.yml, Info.plist and the asset catalogs. Next came the app icon, generated in about 40 seconds: a white flame with a check mark on a green tile. The same icon later shows up on the Simulator home screen.

Apirex details panel showing a generated green flame and check app icon for the Streakly iPhone app
The generated app icon, made inside the project before the Swift code.

Then the Swift files: Theme, Models, HabitStore, Components, StreaklyApp, TodayView, AddHabitView, HabitDetailView and StatsView. Every file opens in the details panel with its diff, so you can read the code while it is being written.

Apirex details panel listing Swift files written for the iPhone app with StreaklyApp.swift open in a code diff
Swift files as they were written, with StreaklyApp.swift open.

BUILD SUCCEEDED on the first xcodebuild

Apirex compiles with xcodebuild on your own Mac, not on a server. Seven minutes and ten seconds into the run, the build log printed "** BUILD SUCCEEDED **" on the first pass. Apirex then finished the screens, booted the Simulator, installed the app and opened it. At 8 minutes 17 seconds the run card read "Built iPhone habit tracker".

First try is true for this build. It is not a promise for every build. When Xcode does report an error, Apirex reads the log and fixes the code before it calls the build done.

The real iOS Simulator, inside the builder

The preview is not a mockup. It is the iOS Simulator running on our Mac, an iPhone 18 Pro on iOS 27.2, streamed into the builder. The bar under the phone shows "Live · WebRTC" and a device picker. On first launch the Today screen read "2 of 4 done" and 50 percent, with Drink water on a 14-day streak, Read 20 min on 12, Morning run on 5, and Meditate.

Streakly first launch in the iPhone 18 Pro Simulator inside Apirex, showing 2 of 4 habits done and 50 percent
First launch: four sample habits with weeks of history, already on the phone.

Taps go through to the app. We tapped the check next to Meditate and the ring moved to 3 of 4, 75 percent, with a spring animation. On the Stats tab: 24 completions this week, a 96 percent completion rate, a Last 7 days bar chart and a ranking of current streaks.

Streakly Stats screen in the iOS Simulator with a Swift Charts weekly bar chart and current streaks
Stats: weekly completions in Swift Charts and the longest current streaks.

Queue a change while it is still building

You do not have to wait for a run to end before asking for the next thing. While Apirex was still generating the icon, we typed "Make the progress ring bigger with the % in the centre." The composer said "Queue follow-up…" and the request waited in a Queue card.

Apirex queue card holding a follow-up request to make the progress ring bigger while the iPhone app is still building
A follow-up waiting in the queue while the first run keeps going.

When the first run finished, the queue sat on Paused for about a minute and then started by itself. About two minutes later the run card read "Enlarged centered progress ring": a much larger ring with 75 percent in the middle and "3 of 4 done" underneath.

Streakly Today screen before and after a queued follow-up: a small progress ring, then a large centred ring with 75 percent
Before and after the queued follow-up.

iOS Visual Edit: point at it in the Simulator

Visual Edit works on iPhone too. Switch it on and a bar appears above the Simulator: "Select an element · Shift-click for more". Click a card, a chart or a label in the running app and it gets outlined. The selection goes into the chat with your prompt, so you can say "make this card bigger" instead of describing where the card is.

Apirex iOS Visual Edit selecting the Stats bar chart and the Drink water habit card in the iPhone Simulator
Left: the bar chart group selected on Stats. Right: the Drink water card selected on Today.

A Today redesign and a Coach tab

Next we asked for a richer Today screen, closer to the Android version. Two runs in this stretch stopped on a temporary "Apirex is temporarily unavailable" card. The card said our files were safe, and we resent a plain instruction: rebuild the Today screen, add a Coach tab and habit subtitles, then build and run it in the Simulator.

The result was "Redesigned Today screen": a smaller ring with "3 of 4 done" beside it, a green "Coach tip of the day" card, subtitles such as "Every day" under each habit, and a third tab called Coach. This post covers the screen design only.

Redesigned Streakly Today screen in the iOS Simulator with a progress card, coach tip card, habit subtitles and a Coach tab
The redesigned Today screen with a Coach tab in the tab bar.

On the home screen, like any other app

Swipe up to the Simulator home screen and Streakly is there, next to Fitness, Reminders and Files, wearing the icon Apirex generated. It is a normal iPhone app in a normal Xcode project in a folder on your Mac. To run it on your own iPhone or send it to the App Store, open the project in Xcode and sign it with your Apple developer account. Apirex does not submit apps for you.

The generated Streakly app icon and the iOS Simulator home screen showing Streakly next to the Apple apps
The generated icon, and Streakly on the iOS Simulator home screen.

The numbers

Streakly for iPhone, built on 30 November 2026.
WhatStreakly for iPhone
PlatformiPhone, Swift + SwiftUI, iOS 17 and later
StorageCodable JSON file on the device, no accounts
PromptOne message (our Android prompt, re-planned for iPhone)
Build time8 minutes 17 seconds
Cost3.83 Rex Credits
Xcode buildBUILD SUCCEEDED on the first pass
PreviewReal iOS Simulator, iPhone 18 Pro, iOS 27.2, streamed into the builder
Queued follow-upBigger ring, about 2 minutes
One-time setupiOS 27.2 Simulator runtime, 8.32 GB download

For comparison, the Android build of the same idea took 9 minutes 24 seconds and 6.94 Rex Credits. On the Builder plan, $30 a month with tax included for 100 Rex Credits, the iPhone build used just under 4 percent of the month.

What is next

  • A website for Streakly in React, from its own prompt and the app icon: we wrote that build up too.
  • A backend. Streakly keeps its data on the phone. When an app needs accounts or shared data, you can connect your own Supabase project from the Backend tab.
  • More real builds, with the prompts, the numbers and the mistakes left in.

Frequently asked questions

Does Apirex build real native iPhone apps?

Yes. iPhone projects are Swift and SwiftUI in a normal Xcode project on your Mac, compiled with xcodebuild. Streakly is one you can open in Xcode today.

Do I need a Mac to build iPhone apps with Apirex?

Yes, a Mac with Xcode installed, because Apple builds use Apple's own tools. Android and web projects also work on Windows and Linux.

How long is the first iPhone setup?

The first iOS project on a Mac downloads the iOS Simulator runtime that matches your Xcode. For us that was 8.32 GB and a little over 20 minutes. It happens once; later projects start in seconds.

Can Apirex turn my Android app into an iPhone app?

No. Apirex does not convert apps between platforms. Each platform is a separate project: start an iOS project, describe the app, and Apirex writes it in SwiftUI. When we sent our Android prompt to an iOS project by mistake, it planned a SwiftUI app from the same description.

Does Visual Edit work on iPhone?

Yes. Switch on Visual Edit, click elements in the running app in the iOS Simulator preview, and describe the change. The selected elements go with your prompt.

Can I publish the app to the App Store?

Yes, with your own Apple developer account. Open the project in Xcode, sign it, archive it and upload it through App Store Connect. Apirex builds the app; it does not submit it for you.

Try it

Pick the iOS · Swift tab, describe your app (in iPhone words, unlike us), and keep the Terminal window open while it builds. If your Mac has never run the iOS Simulator, give the first setup some time. Your code. Your machine. Your build.

How Apirex checks its own work before it says "done"

Build it on your own computer

Describe the app and Apirex writes real source you own, then builds it on your machine.

iOS
Streakly running in the real iOS Simulator inside ApirexReal iOS result from this post

Opens Apirex with this prompt. Pick the iOS · Swift tab before you send. The Free plan includes 5 Rex Credits a day.