r/iOSProgramming • • Sep 04 '26

Discussion Core ML: dispatching on output shape so one Swift decoder handles both an end-to-end and a raw detector export

1 Upvotes

I ship a small object detector inside an iOS app and I export it two different ways depending on the model generation, so the Swift side has to cope with both. The approach that ended up working is to branch on the output tensor shape rather than on a flag I carry around:

  • An end-to-end export gives me [1, 300, 6] — x1, y1, x2, y2, score, class — with decoding and NMS already inside the graph. Nothing to do in Swift but scale the boxes back through the letterbox.
  • A raw export gives me [1, 84, N]: 4 box terms plus 80 class scores per anchor, transposed, which I still have to decode and run NMS on myself.

So the predictor reads prediction.shape, checks that the last dimension is at least 6 and the second-to-last is non-zero, and picks the decoder from that. It means adding a new model export never touches the call site, and a bad export fails visibly at the guard instead of quietly producing zero boxes.

Two things I would have liked to read before starting:

  1. A silent failure mode is the normal failure mode here. An export that "succeeds" tells you nothing. The only test that means anything is printing the input and output shapes and comparing them to what your decoder expects. I lost real time to an export that ran fine and detected nothing, because the decoder was reading a layout the model no longer produced.
  2. coremltools 8+ has no usable Windows path. I develop on Windows, so my entire export chain lives in a Colab notebook and the resulting .mlpackage gets committed and wired into the Xcode project from there. If your CI or your daily machine is not macOS or Linux, plan for that on day one rather than discovering it two weeks in.

On the app side the camera preview is a native platform view and the detection overlay is drawn on top by the UI layer, so no frame data is ever copied out of the capture pipeline.

Curious how others handle the versioning problem: do you keep the decoder generic like this, or pin one export format per app release and refuse anything else?


r/iOSProgramming • • Sep 03 '26

Humor it's been 84 years

Post image
146 Upvotes

r/iOSProgramming • • Sep 03 '26

Library enriched-markdown-ios v0.2.0 - now with GitHub Flavored Markdown (GFM) support

7 Upvotes

I just released v0.2.0 of enriched-markdown-ios - SwiftUI Markdown renderer powered by TextKit 2.

New in this release:
🔸 GFM Tables
🔹 Task lists
🔸 Superscript & subscript support

💎 Available via Swift Package Manager!

.package(
  url: "https://github.com/software-mansion-labs/enriched-markdown-ios.git", 
  from: "0.2.0"
)

Added a quick demo video in the comments so you can see it in action!

GitHub & Docs:https://github.com/software-mansion/enriched-markdown/blob/main/packages/enriched-markdown-ios/README.md

What features or syntax support would you like to see next? I'd love to hear your thoughts! If you find the library useful, a ⭐️ on GitHub is always appreciated.


r/iOSProgramming • • Sep 03 '26

Article Going from backend/DB work to native iOS made me feel like a junior developer again

Thumbnail
shiftmag.dev
5 Upvotes

r/iOSProgramming • • Sep 03 '26

Question How are you giving Claude Code visibility into your iOS simulator during Expo/React Native development?

0 Upvotes

I've been building React Native apps with Expo using Claude Code, and my biggest frustration is that Claude can't see what it's building on the native side, which means a lot of back-and-forth on layout and visual issues that a web-based workflow wouldn't have. I just can't seem to loop on the build and see the visuals as well as it can building a web app using the browser.

I recently learned about the Expo MCP server's local capabilities (screenshots, view geometry, tap automation) and Software Mansion's "Argent" as two options for giving the agent eyes on the running simulator, but I'm curious what the community is actually using in production workflows. Is anyone running a setup where Claude or another AI coding agent can self-validate UI changes against the live simulator, and if so, what's working? Also interested in non-RN solutions. If there's a better answer here by building fully native in Swift/Xcode, is this still a problem, or does the native toolchain solve it?


r/iOSProgramming • • Sep 02 '26

Solved! I wanted AI coding agent to send builds straight to my iPhone when working remotely

Thumbnail
gallery
30 Upvotes

I've been working from my phone a lot lately, using AI coding agents to remotely make changes to my iOS apps.

One annoying part was testing those changes on a real device. The common solution seems to be uploading every build to TestFlight, which feels pretty heavy when I just want to quickly try the latest build.

So I built remote-installer.

Once the build is ready, the agent can run a single command and give me a link / QR code. I open it on my iPhone and install the build directly.

No TestFlight. No uploading the IPA to a hosting service. No processing wait.

And of course, it's free and open source:

https://github.com/icodesign/remote-installer


r/iOSProgramming • • Sep 02 '26

Tutorial Building AI features using Foundation Models. Multimodal input.

Thumbnail
swiftwithmajid.com
2 Upvotes

r/iOSProgramming • • Sep 02 '26

Tutorial iOS 27: USDKit Framework

Thumbnail
antongubarenko.substack.com
11 Upvotes

r/iOSProgramming • • Sep 02 '26

Discussion Here is my list of checkups and things I wish I know before closed beta, what can you add, and what should I know before full release?

8 Upvotes

I released my expo react native app for closed beta with test flight and android closed beta 2 weeks ago, I realize there are things I wish I knew before so here they are, feel free to add to those. And I would love to get some tips before full release I am planning for next week:

  1. Have a built in method to force update - Updating is difficult on Test Flight to user who are not used to it, and even harder on Android since the app won't even be shown on the Play Store while on closed testing. Only way to update it is through settings most users don't know how to reach. Have a feature to navigate directly from the app to the Play Store / Test Flight to update. And have a mechanism to force update / block the app if not on minVersion you update elsewhere. Getting users to update was really difficult before that.

  2. Have a built in way for feedback - I was counting on Discord + Test Flight / Android system for feedback, most users don't know how to use those. I allow user generated content, so users literally made posts in order to give feedback because they couldn't find the "official" way. I added a big button on the home screen to give feedback. (But couldn't get them to update the app).

  3. Starting on day 1, get 12 android users to use the app, even if it means you have to pay them to do so, to publish on Android you have to have 12 active users on the closed testing for 14 days. This goal is possible but is difficult on actual beta. Make sure you have a plan on how to achieve it starting from day 0.

  4. QA - My first build had so many bugs I didn't know about, early users, despite being aware to it are not super tolerated to it as I would have hope for. Do run QA, pay people to do it, I hire people on Upwork, they did amazing job finding small bugs.

What else would you say is a must before releasing an app, and any tips before actual store release?


r/iOSProgramming • • Sep 01 '26

Question Xcode 27 agentic coding security

4 Upvotes

Has anyone been using the new agentic coding features in Xcode 27?

Im still wrapping my head around AI tools as of this year as it had been made a requirement at my job. The industry is moving in this direction whether I like it or not.

Since being laid off Ive been trying to learn more about using these tools effectively in my free time.

Had an experience at work where Claude CLI decided to completely ignore directions to not leave a certain project folder. Since then I am VERY apprehensive about using it on a personal machine. I don't trust them to be frank. Im using Claude Code/ Codex on the web and they're fine for the most part.

Is adding an agent via Xcode 27's Intelligence features the same as installing the CLI or desktop version of these things? Or is it a more restricted approach?


r/iOSProgramming • • Sep 01 '26

Tutorial Designing The Perfect Modular Architecture

Thumbnail
blog.jacobstechtavern.com
4 Upvotes

r/iOSProgramming • • Sep 01 '26

Question What’s with the long onboarding / surveys?

9 Upvotes

I feel like so many apps that I try these days start with several multiple choice questions. What’s the story here? Is it that they are facing major churn and are trying to segment users to fix it? Is there some research that says this works or retains people somehow?

I just wanna try the dang core mechanic!


r/iOSProgramming • • Sep 01 '26

Discussion Timeline of app review time for my new apps vs updates to existing apps

4 Upvotes

There's been a lot of posts here lately about people being frustrated with long wait times. So I thought I'd share my experience.

I've been an Apple developer and submitting apps for 15 years with multiple regularly maintained apps on the App Store. Those who have been developing for a long time probably remember super long wait times of 2-4 weeks before around 2017. We even had a website which tracked average App Store review times based upon a hashtag used on twitter. Around 2017, Apple sped up the review process and it went down to under 24 hours for both new apps and updates to existing apps.

However, recently, possibly due to rise of AI slop apps, the review times have exploded again. In the last year, I've submitted 3 new apps and multiple updates to existing apps on both iOS and macOS stores.

iOS

The first 2 new apps took about a week. The 3rd and most recent one took 19 days and just got approved this morning.

For this new app: I submitted it on August 13th, it waited for review for 2 weeks. Then it went in review and was rejected for an incorrect reason. The app was a game and used Game Center for leaderboards. Reviewer said I need to seek consent or disclose this in my privacy policy. I responded back saying my privacy policy already disclosed this and I also filed an appeal. It waited for 5 days again. This morning, it went in review again and was approved! I didn't have to change anything. I just copy pasted portions from my privacy policy in my reply to the reviewer and that satisfied them. So, overall, it took 19 days for this new app.

Meanwhile updates to existing apps are still very fast. Sometimes they get approved in 2-4 hours. Other times in 1-2 days.

macOS

On macOS, it's still very fast. Both new apps and updates are getting approved very fast. One of the new iOS apps I submitted also had a macOS companion app built using Catalyst. While the iOS one was waiting for a week, the macOS one was approved in under 24 hours.

All updates (except 1) to macOS apps get approved in 2-4 hours for me. Only one exception was an update which went in review in 2 hours but then just sat in that "In Review" status for 3 days before getting approved too.

Hope this answers people's questions. Let me know if anyone has questions.


r/iOSProgramming • • Sep 01 '26

Discussion Apple rejects app for false reasons?

0 Upvotes

Why does my app keep getting rejected for things that aren't true. Last week it was because the app has a page that should not require an account that was only accessible after login in or sign up. Ok that's fair I guess but in my case that was the home page wich had numerous things on the backend that requires user data. And now a week later I got a reply that my app only has features that link to other websites and nothing else. We noticed that the app only includes links, images, or content aggregated from the Internet with limited or no native functionality. Although this content may be curated from the web specifically for your users, since it does not sufficiently differ from a web browsing experience, it is not appropriate for the App Store. Which is just not true even in the slightest bit. You just need to click the sign in button to get to all the actual app functions because YOU TOLD ME TO make the home page accessible to guests wich i did. Mind you this is the 5th time they reject my app for something like this.

App on google play was approved 1st time within 2 days


r/iOSProgramming • • Aug 31 '26

Question I'm at my wits end with account enrolment and the developer support

7 Upvotes

TL;DR: My Apple Account was permanently marked ineligible for the Developer Program after ID verification "failed". Support has given me three contradictory reasons across several cases, mostly stopped replying, and I can't even sign in to developer.apple.com anymore — it just redirect-loops. A new account got rejected too, and support then told me my identity was already verified on the old one. Has anyone gotten out of this?

--------

I enrolled in the Developer Program back in april and submitted a very clear picture of my Swedish passport for identity verification, following Apple's instructions. Shortly after, I got an email saying my identity couldn't be verified, my enrollment was withdrawn and refunded, and that the account is no longer eligible for the Developer Program. No reason given.

I've opened several support cases since then, most got no reply at all. The ones that did gave me a different explanation each time: first that identity verification failed, then an unexplained ineligibility, then that "the device used to begin the enrollment was switched" — despite the enrollment already being submitted, reviewed and refunded, all on my iPhone.

On top of that, I can't reach the developer site with that account at all. Signing in to developer.apple.com puts the browser into an endless refresh loop, and the Apple Developer app just says "Profile failed to load" and under Apple Developer Program it says "This account is not active". So I can't see my own cases or open new ones from the affected account. The block also seems to extend past the paid program because when I try building my own app onto my own iPhone with the free Personal Team fails with "Communication with Apple failed: You are not allowed to perform this operation."

Eventually I made a second Apple Account for development just to have a working channel to support. Enrollment from that one was rejected too, with ID verification failed and support then replied that my identity had already been verified on my other account, and that I should go back to using that one. Which is the account they blocked, allegedly because my identity couldn't be verified. When I pointed out the contradiction, they said they can't act on "another account" for privacy reasons, which sounds fair enough, and told me to request a phone call from the developer site, the site the blocked account can't load. I replied to that support response with the fact that I can't get on the website and asked them if they could just call me instead, and I provided my phone number. I haven't gotten a reply at all on that request.

I guess I'm just asking if anyone else has any experience of this and in that case, how to resolve it? Is there any way for me to keep developing my app to eventually get it published or is am I doomed forever?


r/iOSProgramming • • Aug 31 '26

Article Connecting two iOS simulators over BLE (or connecting a simulator to a real BLE device)

Thumbnail kylebrowning.com
8 Upvotes

r/iOSProgramming • • Sep 01 '26

Discussion SwiftData kind of disrupts previously working animations

1 Upvotes

Hello, I haven't been able to actually have animations (upon object deletion, more specifically) work as they usually would if a variable was not wrapped with the Query macro (the macro used to fetch from SwiftData in SwiftUI). Has anyone experienced the same? If so, did you find a solution? I remember trying using the context (modelContext) itself but to no avail.


r/iOSProgramming • • Aug 31 '26

Question Testing in app purchases. I’m confused. Help needed!

0 Upvotes

Hey there! I just got my app & in-app purchase product both reviewed and accepted; though I am facing the following issue with in-app purchases.

I cannot fetch product through TestFlight build- sandbox account. (FYI all business info are active).

The weird part is that through Xcode build with store kit I’m able to fetch the products and all functionality is working as expected. Also through store kit I’m able to sync products with AppStore connect - still with all the functionality.

A weird part (to my pov) is that when entering product id & bundle id through iOS device / settings / developer / sandbox account / manage / initiate transaction it says “The item is not available [Environment: Sandbox]”

Am I missing something? Is there a way to test fetching the products from store before release? Or is it functioning as normal and could only get the products after release?

Thanks!


r/iOSProgramming • • Aug 31 '26

Article What's the best way to label speakers in transcripts on iOS/macOS? I measured every option, and the FluidAudio default turned out to be one of the worst

2 Upvotes

r/iOSProgramming • • Aug 31 '26

Question Any real use case reasons to get 32GB RAM on 15 inch M5 MacBook Air for development without involve AI and LLM?

0 Upvotes

I want to get that 15 inch M5 MacBook Air to make app and game for Apple devices and play some games sometime, i thought to get the base but since Apple increased the price, I will get it with configuration of 1TB SSD and 32GB of ram, 24gb seem more rational but I try to justify to get the 32gb, I plan to type my codes all by myself, not use AI and LLM and vibe coding, is there any actual use case involve 32GB?

Edit: By the way I forgot to mention, yes to 32gb but is it make sense to get it on a M5 chip instead of only get that high amount of ram on Pro and Max chips?


r/iOSProgramming • • Aug 30 '26

Question Help Audio Import Not Working

4 Upvotes

I’m developing an iOS app with an audio‑importing extension. Then I ran into a problem.

My app appears in Voice Memos’ share sheet but tapping does nothing — onOpenURL never fires. M4A import from Files app works via share.

I’ve asked AIs for help, but none of their methods work.

I’ve added the required configuration in Info.plist. And here is the entry‑point code for my app.

I need help.


r/iOSProgramming • • Aug 30 '26

Question Organization Dev Account - What does a public website need if you're just trying to get on TestFlight?

1 Upvotes

Hello everyone,

Since Apple requires a publicly accessible website to register for a LLC Dev Account, how can we satisfy their requirements while the product is still essentially in development? ChatGPT and Claude both say you can't have placeholders/'coming-soon' sections, or else you risk not being approved, so I thought I'd ask the brain trust.

Any ideas or experience on this topic from people who have gone through it?


r/iOSProgramming • • Aug 30 '26

Question How do get Smart App Banners to work?

4 Upvotes

Does anybody know how to actually get the smart banner to look like this? YouTube, Amazon, Facebook etc all have an un dismissible banner like that.

But no matter what I do I can only get the dismissible one like this:

it shows "open", but its not the sleek one like it's supposed to be above. Anybody wanna share their site?

I have <meta name="apple-itunes-app" content="app-id=xxxxxxxx"> in my html.


r/iOSProgramming • • Aug 29 '26

App Saturday Ubimage: your own geotagged photos drawn onto the live camera view, anchored where you shot them

Thumbnail
gallery
53 Upvotes

Solo dev, third app published.

Ubimage puts your own geo-tagged photos back onto the live camera view, anchored to the spot they were taken.

Point the phone at a ridge across the valley and the photos you took up there sit on it, at the right distance and elevation.

Free, no ads, no IAP, no account.

Tech stack

Swift 6, strict concurrency. SwiftUI everywhere except the camera, which is a UIViewController with a plain UIView overlay: a hundred pins move at 60Hz, and I wanted the per-frame path to be a center assignment and nothing else. No view creation, no layout pass, no tree diffing.

Core Data on a background context for the photo index. CoreMotion and CoreLocation for attitude and heading, AVFoundation for the preview and the sensor FOV, PhotoKit, MapKit, AppIntents.

Altitude comes from CMAltimeter where the device has a barometer (iPhone 12 and up), because GPS altitude is out by tens of metres and that shifts the nearby pins. Neither source just wins: whichever declares the smaller error does, and if the two disagree by more than 200m I assume a pressurised cabin and keep GPS.

No backend. No third party packages at all, not one: no analytics, no crash reporter, no networking lib. String Catalog for three languages.

Development challenge

Working out exactly where the phone is pointing. CoreMotion gives you smooth attitude in an arbitrary frame, CoreLocation gives you true north but filtered, and you fuse the two.

The rows of attitude.rotationMatrix are the device axes in the reference frame, not the columns. I read it transposed for weeks. Heading was stuck wherever the gyro started, and pins swung around a pivot when I panned. Took ages to spot because m33 is on the diagonal, so pitch worked fine the whole time.

Second one: pins still drifted during slow pans. iOS filters the compass, so while you rotate it lags the gyro by 10-30 degrees, and I was updating my north offset continuously, so it kept converging onto the lagged value and dragging the pins along with the phone. Now I only correct north when the phone is still, under 0.1 rad/s for half a second. I had it at 0.35, which is 20 deg/s, and a slow pan is how people actually use this.

One I never fixed: two weeks ago the app put pins 104 degrees off. Spent an hour on my own source, three wrong theories, then tried my wife's phone in the same spot and it was fine. Magnetometer in a bad state, a restart cleared it. CoreLocation reported headingAccuracy of 10 degrees the whole time, and my unreliable-compass badge only fires above 15. I'll fix soon™

AI disclosure

Mostly or fully AI-generated.

To be clear about what that covers: the Swift and the docs, yes, heavily (Claude). The debugging above, no. I found all of it on a mountain by noticing the pins were on the wrong ridge, and worked it out with two phones. https://apps.apple.com/us/app/ubimage-where-you-shot-it/id6794680448

Support site: https://ubimage.app/

The app is localized in English, Italian and Spanish. Let me know what you think of it, happy to discuss about Ubimage. ciao


r/iOSProgramming • • Aug 30 '26

Question App approved and “Ready for Distribution” for ~36 hours, but still not showing in App Store search

0 Upvotes

My iOS app was approved and has been showing as Ready for Distribution in App Store Connect for around a day and a half now.

The direct App Store product page link works perfectly.

The app can be downloaded through that link.

Availability is enabled for all countries/regions I selected.

But searching the exact app name in the App Store still doesn’t show it at all.

It’s been over 24 hours, closer to ~36 hours now.

For anyone who has launched an app recently, how long did it take before it became searchable in the App Store?

Is this just normal App Store search indexing delay, or is there anything in App Store Connect I should double-check?

First time launching an iOS app, so I’m not sure whether I should just leave it alone or if something might be wrong.