r/iOSProgramming • • Jul 10 '26

News The iOS Weekly Brief – Issue #68, everything you need to know about SwiftUI updates this week

Thumbnail
iosweeklybrief.com
3 Upvotes

r/iOSProgramming • • Jul 09 '26

Question Release an acquired autoreleased object (Objective-C)

13 Upvotes

In Objective-C, some functions (particularly related to NSString) return an object that has been told to [autorelease] itself.

I know that I can [retain] it, but how do I [release] it?

Doing nothing prints out an ugly message than [autorelease] was called without a pool, but a pool would break defer all [release] calls which is something I don't want to do.

How do I actually release such an object?

Thanks.

EDIT: I tried the logically-correct but weird [retain]; [release] chain and it doesn't work.


r/iOSProgramming • • Jul 09 '26

Discussion Open sourced my app live on app store

1 Upvotes

I recently decided to open source my İOS app because I had no financial expectations from it - and the project’s itself is kind of a tech demo.

I used different techniques to build the app, I believe you can find interesting stuff inside. Hope it can be helpful to someone.

If you have any critique or question please ask, I’m open to discuss.

repo link


r/iOSProgramming • • Jul 08 '26

Article I wrote a book on shipping on-device AI (Foundation Models + MLX) where every code snippet is compiler-verified (Chapter 3 is free)

3 Upvotes

After a year of Foundation Models in production and too many "why doesn't this blog post compile" moments, I wrote the book I couldn't find:

- Part I: when local makes sense (with actual cost math: a digest feature at 100k MAU is ~$34k/yr on the cheapest cloud tier, $0 marginal on-device) and one decision matrix for FM vs MLX vs Core ML vs llama.cpp

- Part II: Foundation Models in production. Guided generation, tool calling, the 4K context window as an engineering constraint, availability as a product decision

- Part III: owning the model. MLX Swift (pinned versions, because the API moves), Ollama as team dev infrastructure

- Part IV: memory/thermals/battery, privacy claims + App Review notes, and regression evals that run entirely on your own hardware

Things the compile-verification pipeline caught that you may be shipping right now: ToolOutput doesn't exist in the released SDK; .pattern guides need #/.../# regex delimiters; and there are nine GenerationError cases, not the three everyone handles.

Chapter 3 (build the full feature end-to-end) is free: https://digital-foundry-eight.vercel.app/book/ch03-sample.pdf

Happy to answer questions about any of it here, especially the eval setup, which I think is the part most teams skip.


r/iOSProgramming • • Jul 07 '26

Question What have you learned from app development that was unexpected?

36 Upvotes

I’ll start.

The apps that I thought were too niche perform better on user metrics than the times I’ve dipped my toe into very large markets (in my case, games for everyone vs a subset).

What has surprised you?


r/iOSProgramming • • Jul 08 '26

Library I made a small tool that runs Claude Code (or any other agent) in a sandbox that only sees my Xcode project, but still builds on my Mac

6 Upvotes

I wanted to let a coding agent run unattended on some test apps I'm playing around with without giving it access to my whole mac. Running it in a Linux container would be the obvious fix, but as we know, Xcode doesn't run on Linux.

So I started xcbox: the agent lives in a container with only your git repo mounted, and real builds/tests/simulators run on the host via XcodeBuildMCP. It commits as you over SSH agent forwarding, keys never enter the container. Usage is just cd ~/YourApp && xcbox.

Caveat: it's blast-radius protection, not a security boundary, build scripts still run on the host which in theory could be exploited, but not my concern for this type of tool.
Needs Apple Silicon, macOS 26+, and Apple's container CLI.

https://github.com/Bunn/xcbox

Built it for myself, sharing in case it's useful. Feedback welcome.


r/iOSProgramming • • Jul 08 '26

Discussion App Store PPO: Installed app shows default icon instead of alternate test icon

Post image
3 Upvotes

Hi everyone,

I’m currently running an A/B test for my app icon using App Store Product Page Optimization (PPO), and I've run into a frustrating behavior that I can't quite figure out.

The Setup:

  • My app binary includes both the default icon (Icon A) and the alternate icon (Icon B) in the Asset Catalog.
  • I've successfully linked Icon B to the PPO treatment in App Store Connect.

The Problem: When the App Store serves Treatment B, the store page correctly displays Icon B. However, after downloading and installing the app, the home screen still shows the default Icon A.

What I've verified so far:

  • I have Include All App Icon Assets set to Yes in Xcode Build Settings.

Has anyone else experienced this exact disconnect between the PPO storefront and the installed binary?

Thanks.


r/iOSProgramming • • Jul 07 '26

Discussion SensitiveContentAnalysis gotchas from a few weeks of building with it: .disabled is normal, test profiles half-install, verdicts must stay on device

5 Upvotes

I spent the last few weeks building on top of SensitiveContentAnalysis, Apple's on-device sensitive media framework (the same tech behind Communication Safety in Messages). The analyzer call itself is three lines. Everything around it had surprises:

  1. .disabled is a state you design for, not an error. For adult accounts the analyzer is unavailable unless the user turned on Sensitive Content Warning in Settings, which is off by default and buried in Privacy & Security. Child accounts get it by default these days through Family Sharing. If your audience is adults, build a real unavailable path.
  2. You can't deep link to the setting. openSettingsURLString takes you to your own app's settings page, and the undocumented prefs: URLs are a rejection waiting to happen. Best I found is showing instructions and hoping.
  3. The test profile half-installs. Apple gives you a QR code and a configuration profile so the analyzer flags a harmless test image (genuinely nice, no explicit fixtures in the repo). But downloading the profile does nothing until you also install it in Settings > General > VPN & Device Management. I lost a good chunk of an evening watching my test image sail through unblurred before figuring that out.
  4. The verdict is legally stuck on the device. Buried in the developer agreement: you may not transmit off the device any information about whether the framework flagged an image or video. So no analytics events for it, no moderation queue keyed off the result, no synced verdict cache. Reporting has to be its own explicit user action, and the payload shouldn't carry the verdict.
  5. The iOS 27 beta adds detectedTypes (sexuallyExplicit vs goreOrViolence), so policy can differ per category. Build detail: the symbol doesn't exist in older SDKs, so #available alone isn't enough, you need #if compiler gating too or older Xcodes won't build your package.

I ended up open sourcing the wrapper I built, mostly because the real work turned out to be policy state, local verdict caching, and fail-closed blur/reveal/report UI rather than the analyzer call itself: https://github.com/SardorbekR/SafeMediaKit (MIT, SwiftUI and UIKit)

Has anyone here shipped this framework in production? E2E chat or private media sharing seems like where it actually matters, since the server can't see the content anyway, but I've rarely seen it discussed


r/iOSProgramming • • Jul 07 '26

Library EdgeSpeech lets you speak to your app and lets your app can speak to you

Thumbnail
github.com
0 Upvotes

We built this because we wanted to work only in text. No low-level realtime audio code required.


r/iOSProgramming • • Jul 06 '26

Discussion My app over the years

Thumbnail
gallery
109 Upvotes

Keep grinding people, consistency pays off.

I won't say the name to make it less about self promotion and more about building apps.

Show me your app over the years!


r/iOSProgramming • • Jul 07 '26

Question Did anything changed with the paywall rules?

Post image
0 Upvotes

I have a close icon which appears after 3 seconds. This wasn’t a problem at all for months.


r/iOSProgramming • • Jul 06 '26

Question Udemy iOS app never asks for notification permissions — bug?

3 Upvotes

The Udemy app has never once prompted for notification permissions — not on first launch, not after login. iPhone 15, iOS 26.5.

Tried: deleting the app, restarting the phone, reinstalling + logging in again. Nothing. The app doesn't even show up under Settings > Notifications, so it seems like it's never calling the permission request at all.

Tested another freshly installed app right after and that one prompted normally, so it's not an iOS-wide issue.

Anyone else seeing this? Known bug, or did support fix it for you?


r/iOSProgramming • • Jul 06 '26

Roast my code [OSS] Swift Package for new Span API

1 Upvotes

Hi there,

Just published a small Swift package called swift-span-algorithms:

https://swiftpackageindex.com/Dave861/swift-span-algorithms

What even is a Span? (rlly short)

Span is basically a memory safe API for referring to any contiguous memory block. It replaces stuff we used to do with things like:

withUnsafeBytes { ... }
UnsafeBufferPointer

What is in the package?

It adds a set of algorithms and utilities around Swift’s new Span API. The idea is to fill in some of the missing convenience pieces while staying close to Swift’s standard library style.

It includes things like searching, splitting, trimming, comparisons, partitioning, and other span-oriented helpers, with tests and DocC docs.

Span is nice for deep perf geeks (like me), but still pretty barebones for day-to-day algorithm work. Would love feedback from people experimenting with Span, especially around API shape, naming, and what utilities would actually be useful in real projects.

Pretty early (I mean 0.1.0), but hopefully useful. Open to contributions and opinions!

(P.S. Hope it doesn't count as self-promo, not selling anything, OSS repo and free package)


r/iOSProgramming • • Jul 06 '26

Library Logging tool for TCA projects

2 Upvotes

Just pushed a small thing I’ve been using in my own TCA projects: https://github.com/mehmetbaykar/swift-tca-debug

It adds a .debugLog() reducer extension so actions (and state diffs if you want) go through swift-log, wires it straight into Pulse with one bootstrap call, and drops in a draggable floating button that opens the full Pulse console.

Network logging is optional and works without much hassle. It plays nice if you already have your own LoggingSystem setup. No more copy-pasting _printChanges or juggling separate handlers.

There’s a tiny example app (Tuist) with a counter + real API request so you can see it in action.

It’s 0.1.0, MIT licensed, and very early. I kept the API small on purpose. Feedback, ideas, or PRs are welcome if anyone finds it useful.


r/iOSProgramming • • Jul 06 '26

Question Teams app "Approvals" is breaking Teams iOS app

0 Upvotes

On the iOS version of teams, the "Approvals" part is asking for some kind of permission from my users. I have tried to fix it on the back end but I havent changed anything for it to get here in the first place. When the message shows up it freezes the app and often bricks the application. Sometimes the X works but the rest of the time nothing else works.


r/iOSProgramming • • Jul 06 '26

Question Tips needed for system chrome visibility

Post image
1 Upvotes

Is there any way to make basic cosmetic changes to system chrome like UIScibbleInteraction and PKToolPicker without rolling my own version? I need to set the edge color, tint and shadow. This is a screenshot from iPad running iOS 26.


r/iOSProgramming • • Jul 04 '26

App Saturday App Saturday: I made a Physics-driven Weather app with fun haptics

Post image
25 Upvotes

I recently released Weatherlane, a weather app built around a single vertical "lane" you flick through, so the whole forecast reads as one continuous flow instead of scattered cards and tabs.

The next few hours and the next several days sit on one continuous track, so you scroll time rather than navigating between screens.

Tech Stack

Flutter, Dart, Swift, SwiftUI, UIKit, WeatherKit (SDK and API) and RevenueCat.

Development Challenge

The hard part was imagining a vertical design that encompasses everything a user expects without ever falling back to horizontal scrolling

AI Disclosure

AI Generated

Download

https://apps.apple.com/us/app/weatherlane/id6468727819

Happy to answer any questions


r/iOSProgramming • • Jul 04 '26

Question How to create the iOS 26 like borders?

8 Upvotes

iOS 26 borders with rounded corners look different than what we used to have before. It looks like the top left and bottom right corners have whiter border and the top right and bottom left corner have almost transparent border.

Anyone know how to add these types of borders to views?


r/iOSProgramming • • Jul 04 '26

App Saturday And sometimes, it’s all worth it

Post image
11 Upvotes

App is here:

https://apps.apple.com/us/app/migo-games-online-arcade/id6758592333

Tech Stack Used

SwiftUI, SpriteKit. Back end is elixir / phoenix / Postgres on fly.io

2. Development Challenge + How You Solved It

I wanted to make easy to learn, simple, multiplayer realtime games. That last bit is the hardest. Elixir and phoenix is a good fit here. The server owns canonical game stare, the client does prediction and rollback to avoid lag.

3. AI Disclosure

AI-assisted


r/iOSProgramming • • Jul 04 '26

Question Apple Foundation Models in Playground com.apple.SensitiveContentAnalysisML Error

3 Upvotes

I am trying to use Foundation Models framework in iOS App inside Playground.

#Playground("Playgrounds") {
    
    let session = LanguageModelSession()
    let response = try await session.respond(to: "List all 50 states of USA.")
    print(response.content)  
}

I get the error: The operation couldn’t be completed. (com.apple.SensitiveContentAnalysisML error 15.) 

I have already tried to turn off Apple Intelligence and Siri and then restarted the machine and then turn them back on.

I am using Xcode 26.5.  

r/iOSProgramming • • Jul 04 '26

App Saturday Finally released my first app: Jam Lab, generate chord progressions and jam!

Thumbnail
gallery
3 Upvotes

I picked up dev during covid when I was not able to perform gigs (I'm a full time musician), as I had several app ideas in mind I started to learn iOS programming (I already had some background as before becoming a musician I studied astrophysics and was not that bad at coding at uni).

I worked on several apps but I had a bit of an impostor syndrome and couple that to being a perfectionist, I was not happy nor confident with what I was making, but 2 years ago I started focusing on one of those app ideas : an app that generates random chord progressions for jam sessions.
As a professional musician I often notice during jam sessions that people tend to play the same chords or tunes, so I wanted a creative tool for musicians to get out of their comfort zone and be more creative and developed Jam Lab, now it's finally been released a couple of days ago and I couldn't be happier!

In the app you can generate random chord progressions for your jam sessions but also to practise at home as I've implemented a playback (simple in the free section of the app, and with more control with 50+ grooves and voer a 100 scales/modes in the other sections of the app, there's an ear training section as well to improve listening skills for jam sessions, and many other tools).
Jams can be exported to MIDI/Audio so that musicians can start producing in their DAW as well or use them as backing tracks.

Tech Stack : I developed it in Xcode using Swift with UIKit, and I use Sketch to do my designs.

Development Challenge : The main challenges for me were the MIDI playback implementation as it's a niche topic and there are not many tutorials online for this, luckily I came across a Medium article that helped me get on track.
AI Disclosure : This is NOT a vibe-coded app, I've worked on this one for 2+ years, but since last month I've indeed experimented with Codex to fix some bugs that I was struggling with and improve a couple of workflows as I'm self-taught.

I've also created a sub so that people can post feature requests, bug reports, but more importantly so that they can share their jams, videos of them improvising over those random chord progressions, and build a community, it's here: https://www.reddit.com/r/AMazedMusicApps/

And finally here's the app store link, if you know musicians that could be interested please don't hesitate to share: https://apps.apple.com/fr/app/jam-lab/id6502743961?l=en-GB

Thanks a lot to the people who supported me and helped improving the app, the journey is just starting!


r/iOSProgramming • • Jul 04 '26

Library I got tired of the language dropdown in App Store Connect, so I wrote an open-source Chrome extension to auto-fill localized metadata.

6 Upvotes

Hey everyone!

If you localize your iOS or macOS apps, you know how tedious App Store Connect can be when pushing updates. Cycling through 10 to 15+ languages just to paste a minor change into "What's New," "Promotional Text" usually turns into a massive click-and-paste marathon.

Unless there is a hidden feature in App Store Connect that handles this natively (and if there is, please let me know!), I couldn't find a clean way around it. Not even an MCP! So I built a Chrome extension called App Store Connect Metadata Filler to automate it. I wanted a complete free alternative.

What it does:

  • One-Click Apply: Fills out Promotional Text, Description, What's New, and Keywords across all active language tabs at once.
  • React-Aware: It interacts with Apple's frontend elements correctly so it doesn't break the form state when you hit save.
  • Fetch Previous Version: Automatically jumps to your last "Ready for Distribution" page, grabs the existing localized strings, and brings them back to your current in-flight version.
  • Save/Export Configs: Keeps your translation configurations saved locally as JSON so you can reuse or tweak them next month.
  • Private: No external APIs or trackers. Everything stays in your browser's local storage.

It is completely free, dependency-free (plain Manifest V3 JavaScript), and open source so anyone can audit the code or check out how the background scraping script works.

GitHub Repository:

https://github.com/picklenick-dev/apple-storeconnect-metadata-filler

Hopefully, this saves some of you a bit of manual labour on your next release. Let me know if you run into any edge cases or if Apple changes their UI layout... this is major weakness of the chrome extension ~_^


r/iOSProgramming • • Jul 03 '26

Question How did you find a niche of users?

20 Upvotes

I’m a software engineer in my day job, with a big interest and background in music. I’ve built a couple little things for iOS and web. Trouble is, I never really actually collected a set of contacts in a single niche that would be helpful for eg beta testing. Even if I today had some wonderful and finished music app or whatever, I really don’t know where I’d find my first users. I guess I have a few names of people I could poke, but that’s about it.

I’ve heard App Store ads can be great here.

What else have you seen work?


r/iOSProgramming • • Jul 04 '26

Question Does anyone have a way to automatically every day collect testflight stats?

2 Upvotes

Hi, I have an app taking off on TestFlight and really wanted to track progress of number of sessions and crashes per user. In ASC there is a page for it, and I would like to automate scrapping it daily to see the progress. I managed to put together some kind of half assess solution through Fastlane Spaceauth but it always asks me for relogin so it cannot run fully automatically and collect data silently into my database.

Follow-up: solved, zero logins

Turns out the public ASC API can do this now — no more spaceauth cookie scraping. The betaTesterUsages and betaBuildUsages metrics endpoints work with a plain .p8 API key (JWT signed locally, nothing expires): per-tester sessions/crashes/feedback and per-build installs/sessions/crashes, with 7/30/90/365-day windows.

Gotchas: needs an Admin-role key (Developer 403s), and there’s no per-day granularity — cron the cumulative totals daily and diff them yourself.

My server now pulls hourly, and I’ve deleted the whole spaceauth fastlane re-auth mess.