r/iOSDevelopment • • 1h ago

My app finally hit #1!

1 Upvotes

Never before had I seen my app ranked #1 in any category, until today...

Just one more thing… it's the free iPad chart, Luxembourg, Developer Tools. 2 downloads :))


r/iOSDevelopment • • 2h ago

iOS developer

0 Upvotes

r/iOSDevelopment • • 3h ago

Apple isn’t sending my 2FA verification code – locked out of my Apple Developer account for a week

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 8h ago

First SwiftUI App on Windows: From an Empty KXBuild Project to a Real iPhone

1 Upvotes

This article starts from an empty project and uses SwiftUI on Windows to write a to-do list app, install it on your own iPhone to run and debug with breakpoints, and finally package it to send to friends or colleagues. It's for people who know a bit of programming and are writing iOS for the first time, and also for iOS developers who only have a Windows PC on hand. The whole thing takes about an hour.

Before you start, get three things ready. An Apple developer account, used to generate certificates and provisioning profiles. An iPhone and a cable that can transfer data. A computer with KXBuild and the VS Code extension installed; if you haven't installed them yet, follow the installation page.

Create a project {#create-project}

Choose either of the following two approaches.

  • VS Code extension. Press Ctrl+Shift+P to open the command palette, run KXBuild: New Project, choose the "iOS App (SwiftUI)" template, enter MyTodo as the project name, change the bundle ID to your own reverse domain name, e.g. com.yourname.mytodo, and pick a directory to store it in. When creation finishes, choose "Open in New Window".
  • Command line. Run the command below in PowerShell, then use VS Code's File → Open Folder to open D:\projects\MyTodo.
kxbuild project create -t app_swiftui -n MyTodo -b com.yourname.mytodo -o D:\projects

Once it opens, the KXBuild view on the left lists the MyTodo project and an app target of the same name. The project contains only three things: MyTodoApp.swift is the app entry point, ContentView.swift is the home screen UI, and Assets.xcassets holds icons and colors. All the code below goes into ContentView.swift, which saves you the step of adding new files to the project.

The bundle ID is the app's unique identifier on Apple's side. You'll use the same one later when generating provisioning profiles and creating the app in App Store Connect, so settle it now and don't change it afterwards.

Step 1: the list screen {#step-list}

Start with a read-only list whose data is hard-coded. Replace the entire contents of ContentView.swift with the following.

import SwiftUI

struct TodoItem: Identifiable, Codable {
    var id = UUID()
    var title: String
    var done = false
}

struct ContentView: View {
    @State private var items = [
        TodoItem(title: "Buy milk"),
        TodoItem(title: "Change the app icon"),
        TodoItem(title: "Send the ipa to a colleague", done: true)
    ]

    var body: some View {
        NavigationView {
            List(items) { item in
                HStack {
                    Image(systemName: item.done ? "checkmark.circle.fill" : "circle")
                        .foregroundColor(item.done ? .green : .secondary)
                    Text(item.title)
                        .strikethrough(item.done)
                }
            }
            .navigationTitle("待办")
        }
    }
}

TodoItem is the data for a single to-do; Identifiable lets List tell the rows apart, and Codable is there for saving to a file in step 3. Whenever the array marked with @State changes, the UI refreshes automatically.

As you write, you'll notice that after typing Text(item.title). you get completions for modifiers such as strikethrough, font, and foregroundColor; the arguments of Image(systemName:) and the various List initializers are completed too, and F12 jumps to the definition of types you wrote yourself. Mistakes get red squiggles, and the Problems panel has the full error message. The first time you open a Swift file, code completion takes a few seconds to start; if completions don't show up, run KXBuild: Reload Code Tip from the command palette. For more cases, see Code completion and indexing.

Run it on an iPhone {#run-on-device}

The first time you run on a real device you need to do two things: put the certificates in place and connect the phone. After that you only press F5 each time.

Put the certificates in place {#signing}

Running on a real device requires an Apple Development certificate (.p12) and a Development provisioning profile (.mobileprovision) that includes this phone's UDID. If you don't have them, you can use Appuploader to sign in with your developer account and generate them, or export them from Keychain Access on a Mac; see Certificates and signing for several approaches. To see the phone's UDID, connect it to the computer and run the command below; the first column is the UDID.

kxdevice device list

Create a keychain folder in the project root, put both files in it, then create a password.properties with a single line of filename=password.

development.p12=123456

The template's .gitignore already excludes the keychain directory, so certificates never get committed to the repository.

Connect the phone {#connect-device}

Connect the iPhone to the computer with a data cable, click the phone under the "Devices" node in the KXBuild view, and select it as the current device. The first connection involves the following steps in order; see Device setup for details.

  • When the device node says "click to configure", click it to install the Apple device driver; the process asks for administrator permission once.
  • When the phone shows "Trust This Computer", unlock it and tap Trust.
  • Open Settings → Privacy & Security → Developer Mode on the phone; the phone restarts once. This switch only appears after the phone has been connected to a computer.
  • The first time you debug a given iOS version, a few GB of symbol files are downloaded automatically, which takes about ten-plus minutes; this happens only once.

Press F5 {#press-f5}

Press F5 and KXBuild builds, signs, installs, launches the app, and attaches the debugger in sequence; the three hard-coded to-dos appear on the phone. The build log is in "Output → KXBuild", and compile errors are in the Problems panel — click one to jump to the corresponding line.

If the launch fails, the notification says which step it got stuck on. The most common cause is that the provisioning profile doesn't include this phone's UDID; add the UDID to the profile, download it again, and replace the old file in keychain. For other messages, see Running and debugging.

Step 2: add, delete, and check off {#step-edit}

Now let's make the list editable. Add a text field at the top, tap a row to toggle its done state, swipe left to delete, and use the Edit button in the top-right corner to delete in bulk. Replace ContentView with the version below; TodoItem stays the same.

struct ContentView: View {
    @State private var items: [TodoItem] = []
    @State private var newTitle = ""

    var body: some View {
        NavigationView {
            List {
                Section {
                    HStack {
                        TextField("新的待办", text: $newTitle)
                            .onSubmit(add)
                        Button("添加", action: add)
                            .disabled(newTitle.trimmingCharacters(in: .whitespaces).isEmpty)
                    }
                }
                Section {
                    ForEach($items) { $item in
                        Button {
                            item.done.toggle()
                        } label: {
                            HStack {
                                Image(systemName: item.done ? "checkmark.circle.fill" : "circle")
                                    .foregroundColor(item.done ? .green : .secondary)
                                Text(item.title)
                                    .strikethrough(item.done)
                                    .foregroundColor(.primary)
                            }
                        }
                    }
                    .onDelete { offsets in
                        items.remove(atOffsets: offsets)
                    }
                }
            }
            .navigationTitle("待办")
            .toolbar { EditButton() }
        }
    }

    private func add() {
        let title = newTitle.trimmingCharacters(in: .whitespaces)
        guard !title.isEmpty else { return }
        items.append(TodoItem(title: title))
        newTitle = ""
    }
}

ForEach($items) { $item in … } gives you a binding to each row, so item.done.toggle() modifies exactly that entry in the array. onDelete supports both swipe-to-delete and deletion in edit mode.

After changing code, stop debugging (Shift+F5) first and then press F5; "Restart" on the debug toolbar does not recompile.

Breakpoints and variables {#breakpoint}

Click to the left of the line number of the items.append(...) line inside add(); a red dot appears. On the phone, enter a to-do and tap "添加" (Add); the app pauses and VS Code switches to the debug view.

In "Variables" on the left you can see the value of title, and "Call Stack" shows how this call was reached. F10 steps one line, F5 continues execution. In the debug console below you can type lldb commands directly, for example po title prints the current title. Output from print in your code shows up in "Output → KXBuild Console".

Step 3: save the data to a file {#step-persist}

Right now, if you close the app and open it again, the to-dos are gone. Store the list as a JSON file in the app's Documents directory, saving automatically on every change and reading it back at launch.

Put the data and the read/write logic in a TodoStore and let the UI only display it. Add this class below TodoItem in ContentView.swift.

final class TodoStore: ObservableObject {
    @Published var items: [TodoItem] = [] {
        didSet { save() }
    }

    private let fileURL = FileManager.default
        .urls(for: .documentDirectory, in: .userDomainMask)[0]
        .appendingPathComponent("todos.json")

    init() {
        if let data = try? Data(contentsOf: fileURL),
           let saved = try? JSONDecoder().decode([TodoItem].self, from: data) {
            items = saved
        }
    }

    private func save() {
        do {
            let data = try JSONEncoder().encode(items)
            try data.write(to: fileURL, options: .atomic)
        } catch {
            print("Save failed: \(error)")
        }
    }
}

Then change four places in ContentView to use this store instead of the @State array.

    @StateObject private var store = TodoStore()   // replaces @State private var items
    // …
    ForEach($store.items) { $item in               // was ForEach($items)
    // …
    store.items.remove(atOffsets: offsets)         // inside onDelete
    // …
    store.items.append(TodoItem(title: title))     // inside add()

When the array marked @Published is modified it triggers didSet, so checking, deleting, and adding each write the file once. Assigning to items in init does not trigger didSet, so reading the file at launch doesn't write it back out again.

Press F5 again, add a few to-dos, swipe the app away in the app switcher on the phone and reopen it — the data is still there. To confirm the file really gets written, set a breakpoint on the let data = … line in save(), check off a to-do, and once it pauses type po fileURL in the debug console to see the full path of the file inside the app sandbox.

When the data is just a few switches and a string or two, using @AppStorage("key") to store it in UserDefaults is less work. List data like to-dos is better stored in a file, and it's easier to migrate to Core Data or SwiftData later.

Change the name and icon {#name-and-icon}

By default the app's name on the phone's home screen is MyTodo. Right-click the target in the KXBuild view, choose KXBuild: Edit Target Settings, change Display Name to "To-do" on the General page, and press Ctrl+S to save. The same page also lets you change the version number and the minimum iOS version; see Project settings editor for what each field means.

For the icon, open Assets.xcassets under the resource catalog node in the KXBuild view and drop a 1024×1024 image into AppIcon; the other sizes are generated automatically, see Asset catalog editor. Press F5 once more to see it on the phone.

Package it and send it to others {#share-ipa}

A Debug build can only be installed on phones listed in the provisioning profile. To send the app to others, pick one of the approaches below based on how many people there are and whether they're nearby.

Use TestFlight to send to testers {#testflight}

Use TestFlight when the recipients aren't nearby and there are more of them. They install the TestFlight app on their iPhone and install your build directly after accepting the invitation — no UDID registration needed.

Put an Apple Distribution certificate and an App Store type provisioning profile into the keychain directory, and add a password line to password.properties the same way. Then choose either of the following two approaches.

  • VS Code extension. Switch the "Build Configuration" node in the KXBuild view to Release (you can also run KXBuild: Select Build Configuration from the command palette), then run KXBuild: Build.
  • Command line. Run the command below in the project directory.
kxbuild build .\MyTodo.xcodeproj -c Release

When it finishes, build\MyTodo.ipa is generated in the project directory. Create the app in App Store Connect, upload the ipa with Appuploader, and once processing completes add testers on the TestFlight page; see Publishing and release for details.

Use Ad Hoc to install directly on nearby colleagues' phones {#ad-hoc}

For a handful of fixed test devices, use Ad Hoc. Register the UDIDs of your colleagues' phones on the developer site, generate an Ad Hoc provisioning profile containing those devices, and build Release with a Distribution certificate following the steps above. If both App Store and Ad Hoc profiles are in keychain, use -D to specify which one to use at build time.

kxbuild build .\MyTodo.xcodeproj -c Release -D CODE_SIGN_STYLE=Manual -D CODE_SIGN_IDENTITY="Apple Distribution" -D PROVISIONING_PROFILE_SPECIFIER="MyTodo AdHoc"

Connect your colleague's phone to your computer and run the command below to install.

kxdevice install .\build\MyTodo.ipa

r/iOSDevelopment • • 9h ago

An iPhone timer that doubles as a tiny desk sign

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 19h ago

Apple Developer Program enrollment stuck for almost a month – Individual enrollment from Kosovo (D&B issue)

Post image
1 Upvotes

r/iOSDevelopment • • 21h ago

Guide around best practices and tips for implementing a good app rating prompt workflow within your app.

1 Upvotes

hey everyone! I wrote a guide based on my experiences around implementing app rating prompt workflows across my mobile and desktop apps, and some tips borrowed from official app store and play store documentation.

I added what I would do and things I would avoid when implementing a app rating prompt workflow within apps. And also covers store specific limits/restrictions around how often you can ask for rating, and other edge cases you may want to be aware of.

Hope it helps and acts a good guide that covers some of the important parts around app's ratings and review workflows.

You can read it here,
https://appshots.co/blog/guide-to-ask-for-app-ratings-review-to-improve-app-ranking


r/iOSDevelopment • • 1d ago

Hit 3K iOS app subscribers 💪

Post image
3 Upvotes

r/iOSDevelopment • • 1d ago

I made a Queens-style logic puzzle where every 10 levels uncovers a hidden royal portrait (iOS, free)

0 Upvotes

r/iOSDevelopment • • 23h ago

€500k for an empty plot? I built an iPhone app to check land values in Germany

Post image
0 Upvotes

I built Grundio because I’d walk past an empty plot in Germany and wonder, “What would land cost around here?” With Grundio, you can tap the plot on your iPhone to see where it starts and ends. If an official land value is available for that area, you can see it in euros per square meter and compare it with the asking price.

Right now, you tap the map to see that number. Would you rather see it on the map right away?

Grundio on the App Store · iPhone only, Germany


r/iOSDevelopment • • 1d ago

Ho creato un'app da 1 € che salva le tue email come PDF (allegati inclusi) e poi libera spazio nella tua casella di posta.

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 1d ago

X media downloader

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 1d ago

iOSで「人が車を離れた」ことを検知する方法:Bluetooth、モーションセンサー、それとも別の何か?

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 1d ago

Ho creato un'app da 1 € che salva le tue email come PDF (allegati inclusi) e poi libera spazio nella tua casella di posta.

1 Upvotes

Ciao! Sono uno sviluppatore indipendente italiano. La mia casella di posta si riempiva sempre di più e non volevo perdere le vecchie email, quindi ho creato Archivia Mail.

Cosa fa:
- Trasforma le tue email in PDF puliti e leggibili, con allegati e il file .eml originale, in un archivio ordinato nell'app File (una cartella per ogni casella di posta, una sottocartella per mese)
- Libera spazio sul server, ma solo dopo aver verificato email per email che tutto sia stato archiviato correttamente
- Trova newsletter e pubblicità, annulla l'iscrizione con un solo tocco e le elimina
- Copia il tuo archivio in un'altra casella di posta se cambi provider, mantenendo le stesse cartelle e senza duplicati
- Funziona con Gmail, Outlook e Hotmail (accesso Microsoft), iCloud, Yahoo, GMX, WEB.DE e quasi tutte le caselle di posta IMAP. Proton Mail non è supportato.
Privacy: nessun account, nessuna pubblicità, nessun dato raccolto. La tua password non viene mai memorizzata e viaggia solo, crittografata, al tuo server di posta.

Prezzo: 1 € una tantum, nessun abbonamento. Un singolo acquisto è valido per iPhone, iPad e Mac. Richiede iOS 15 o versioni successive.

App Store: https://apps.apple.com/app/id6835124667

Mi piacerebbe ricevere il tuo feedback, soprattutto su cosa migliorare in futuro!


r/iOSDevelopment • • 1d ago

I want similar behavior in my app same as Contact app does. On iPhone Duo.

Thumbnail gallery
0 Upvotes

r/iOSDevelopment • • 1d ago

Anyone else experiencing sudden App Store Connect API returning 401 NOT_AUTHORIZED?

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 1d ago

I built a portal to upload iOS builds to TestFlight without a Mac or sharing Apple keys. Feedback welcome

0 Upvotes

I'm the developer. Our team had Windows devs who couldn't use Transporter or Xcode, and we didn't want to hand contractors our App Store Connect .p8 key. So we built a small web portal:

- The owner uploads the .p8 once. It's encrypted with AES-256-GCM and never shown to developers

- Developers drag and drop an .ipa from any OS

- Automatic checks on the ZIP, Info.plist and bundle ID before anything goes to Apple

- Optional owner approval before a build reaches TestFlight

- Stage-by-stage tracking with an audit trail

There's also a free iOS Screenshot Studio. It runs in the browser and your images stay local.

Free plan is 5 builds a month. Link in the comments.

Honest question: what would make you trust (or not trust) a tool that holds an API key? What's missing?


r/iOSDevelopment • • 1d ago

Open source database app with iOS capabilities?

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 2d ago

Chord: a free, open-source macOS app for iOS devs working with coding agents

Post image
11 Upvotes

When I work on iOS apps with AI agents, I can get a lot done in parallel. The problem was that the agents kept building over each other, and I couldn't run builds or check previews on different branches at the same time.

I also hate having a lot of apps open at once like sourcetree, Xcode, finder, the Simulators and so on. Chord puts all of that in one window. It's now the app I use every day. You can bring your own harness (pi, Claude Code or Codex), run builds and simulators for each branch, and check every SwiftUI preview from a list.

https://github.com/Pistifeju/Chord

It's free and open source, and still in early development.


r/iOSDevelopment • • 1d ago

[iOS, Beta] MoonGlide: an Android-style keyboard for iPhone, looking for testers

Thumbnail reddit.com
1 Upvotes

Developer here: it runs fully on-device inside the 40 MB memory limit iOS gives keyboards, with its own autocorrect and dictionaries. Happy to answer questions about building it.


r/iOSDevelopment • • 1d ago

[iOS] Slingback is now in public beta. Looking for testers!

Thumbnail testflight.apple.com
0 Upvotes

I’ve opened up public testing for Slingback, a photo and video messaging app I’ve been working on.
You can send Slings to friends, send one back to unlock what they’ve shared, post 24-hour Moments and build daily friendship streaks.
I’m looking for iPhone users willing to try it out, preferably with a friend.
I’d really appreciate feedback on the design, onboarding and overall experience. Bug reports are welcome too!
Join on TestFlight:
Thanks to anyone who gives it a go!


r/iOSDevelopment • • 1d ago

My Gaggle App - Open Beta

Thumbnail testflight.apple.com
1 Upvotes

r/iOSDevelopment • • 2d ago

[iOS] Slingback is now in public beta. Looking for testers!

Thumbnail testflight.apple.com
0 Upvotes

I’ve opened up public testing for Slingback, a photo and video messaging app I’ve been working on.
You can send Slings to friends, send one back to unlock what they’ve shared, post 24-hour Moments and build daily friendship streaks.
I’m looking for iPhone users willing to try it out, preferably with a friend.
I’d really appreciate feedback on the design, onboarding and overall experience. Bug reports are welcome too!
Join on TestFlight:
Thanks to anyone who gives it a go!


r/iOSDevelopment • • 2d ago

I got Alpine Linux running on my iPhone with a RISC-V emulator

Thumbnail reddit.com
1 Upvotes

r/iOSDevelopment • • 2d ago

[For Sale] Notch — unreleased iPhone habit tracker with Xcode source

0 Upvotes

I built Notch, an iPhone habit tracker with quick check-ins, a swipeable calendar, habit heatmaps, and a circular sleep scheduler. The Today screen shows what’s scheduled, what you’ve logged, and how many goals you’ve met.

Notch is currently unreleased and runs in Xcode’s iPhone Simulator. I’m selling the Xcode project and source code so another developer can take it forward and publish under their own Apple Developer account. I’m open to offers. DM me if you’d like to talk through the build or what’s included and the pricing.

Website — https://notch-habits.pages.dev/

TikTok — https://www.tiktok.com/@notch.app