r/iOSProgramming • u/MessyBookPilesFTW • 25d ago
r/iOSProgramming • u/dianzhu • 25d ago
Discussion PSA: Check your App Store Connect Agreements if your app is stuck in Waiting for Review!
I had two apps stuck in Waiting for Review and couldn't figure out why.
It turned out Apple had updated the Apple Developer Program License Agreement.
Go to App Store Connect → Business → Agreements and check if there's a pending agreement that requires acceptance by the Account Holder.
I accepted the new terms, and the issue was identified.
If you're experiencing unusually long review times, check this first!
r/iOSProgramming • u/ShadowLorddd • 24d ago
Solved! Got tired of running terminal commands just to push files to iOS simulators because of the new Device Hub, so I vibecoded Harbor
Hey guys!
I was a bit late updating to the latest macOS version because of a legacy project, but I finally made the jump about 2-3 weeks ago. Initially, I was like, okay, it's not that bad. I can work with this.
But eventually, I got tired of the shitty Device Hub that replaced the good old simulators. It doesn't support drag and drop for files, the keyboard stops working when you have two or more simulator instances open at once, and there's a whole bunch of other annoying issues.
I was okay putting up with most of it, but the lack of drag and drop was the biggest pain point. I started using simctl to transfer files through the terminal, but eventually got tired of doing that too and decided to just vibecode a tool for it.
I named it Harbor because SimPort sounded too lame. 😂
Anyways, meet Harbor, a lightweight macOS menu bar app that bridges the gap between macOS and simulator runtimes with instant drag-and-drop file imports, batch queueing, and bidirectional clipboard synchronization.
What it does:
- Floating Drop Window ("Harbor Drop"): An always-on-top, translucent panel that you can drag anywhere above Xcode or Device Hub.
- Collapsible Sticky-Note Mode: Shrinks down to a slim 44pt header bar while you work, and automatically expands when you drop files onto it.
- Batch File Queue: Drop multiple files or folders at once, inspect them, and send everything over in one go.
File handling:
- Documents (
.pdf,.xlsx,.json, code files, etc.) are sent directly to the simulator's native Files app ("On My iPhone"). - Photos and videos go straight into the Photos library.
.appbundles are installed automatically viasimctl install.
Other features:
- Deep Link & URL Opener: A quick input prompt to fire custom URL schemes (
myapp://profile/123,oauth://callback) or web URLs directly on the target simulator. - Bidirectional Clipboard Sync: One-click copy/paste between your Mac and Simulator, plus a global hotkey (
⌥⇧V/Option + Shift + V) so you can paste into the simulator without opening any menus.
Check out the repo here: https://github.com/anurag0713/Harbor
I more or less vibecoded the entire thing, so you're more than welcome to roast me for any issues or funny bugs you find. I'll be right there in the comments fixing them for you lol.
r/iOSProgramming • u/HappyFunBall007 • 26d ago
Question Duo Badges in App Store?
I built and submitted an app update with XCode 27.1 and included Duo screenshots taken with the simulator. The update was approved (including the screenshots) and posted but the App store does not show a "Duo Ready" (or whatever) Logo and the Duo screenshots are not available on my app store pages, it still only shows iPhone and iPad previews.
What is needed to get "full" Duo support listed in the App store??
r/iOSProgramming • u/JavaEEE • 26d ago
Article What I learned running HT-Demucs (AI stem separation) fully on-device with Core ML
I spent the last months getting Meta's HT-Demucs (the model that splits a song into drums, bass, vocals and other) running entirely on an iPhone with Core ML: no server, no uploads. A few things I learned that might save someone time:
1. Keep the STFT out of the model. HT-Demucs works on both the waveform and the spectrogram. Converting the STFT/iSTFT ops with coremltools was a pain, so I converted only the network in between and wrote the STFT in Swift with vDSP. To make sure I hadn't broken anything, I exported golden data from Demucs' own _spec/_ispec in Python and wrote tests against it. The Swift version matches PyTorch to about 1e-5. Being able to check every step against PyTorch was worth more than anything else.
2. fp16 was unusable; fp32 was fine. The fp16 conversion loaded and ran, but on the device every stem came out noisy (mostly below 200 Hz) and the stems no longer summed back to the mix. Converting at fp32 (182 MB) fixed it. It runs on the GPU, not the Neural Engine, but it's still fast: a 4-minute song separates in under a minute. I'd planned to try mixed precision, but it turned out I didn't need it.
3. Port the chunking exactly. Long songs don't fit in one pass, so I ported Demucs' apply_model split logic (overlap 0.25, triangle-weighted overlap-add) one to one. Getting the edge chunks wrong gives you faint clicks every few seconds that are easy to miss.
4. Compare stems by numbers, not by ear. I wrote a Python script that scores stems copied off the phone against PyTorch reference stems. One gotcha: iOS and libsndfile decode the same MP3 529 samples apart (encoder delay handling), so you need to align the signals before comparing or the scores look terrible.
5. Ship the .mlpackage and compile it on the device. I build with xtool (SwiftPM on Linux/WSL, no Xcode), so I have no Core ML compiler. I ship the raw .mlpackage and call MLModel.compileModel(at:) on first launch, then cache the result. One trap: the iOS build tries to run coremlc on anything named .mlpackage, even with .copy, so I had to rename it in the bundle.
6. Stems can clip. Individual stems can peak above full scale even when the original mix doesn't. I store them as AAC 6 dB down and add the gain back at playback.
Still on my list: BGContinuedProcessingTask, so separation keeps running when the app goes to the background. Has anyone used it for long GPU work yet?
app name is stem808 if anyone wants to try it
r/iOSProgramming • u/BeDevForLife • 26d ago
Discussion Anyone found a workaround for pinch-to-zoom in the new Xcode 27 Device Hub? Trackpad isn't working
Hey everyone,
Ever since updating to Xcode 27 and moving over to the new Device Hub app, I've been hitting a wall trying to test multi-touch gestures.
I’m building an app that relies heavily on zooming, but I can't get pinch-to-zoom or zoom out to work at all. I tried using the standard Mac trackpad gesture, but it completely ignores the input.
In the old Simulator, we could use the Option key to bring up the dual-finger touch points, but that doesn't seem to trigger either.
Has anyone found a reliable workaround or hidden menu setting to trigger multi-finger gestures in Device Hub?
r/iOSProgramming • u/DarkSombreros • 26d ago
Question iOS Interviews: Do I need to know pre-concurrency syntax?
Ive been developing with SwiftUI/iOS for the last two years and have an app out in production. My entire codebase is already using Swift 6 concurrency but I still never felt confident with it for interviews. So now I'm going through avanderlee's swift concurrency course and I'm learning the difference between closure-based network calls vs one using modern concurrency.
In an interview setting would it be bad if I didnt know how to write a closure-based network call? Or should I still be comfortable discussing it to some extent
r/iOSProgramming • u/trevor2893438 • 25d ago
Discussion Are there any good open source models for making apps?
Been really happy with opus 5.5 lately but I am looking to start localizing my workflow for redundancy.
r/iOSProgramming • u/Lazy-Benefit1863 • 26d ago
Question Tracking total cellular data usage on iOS. Has anyone tried this?
I'm working on an app and exploring whether we can track a device's total monthly cellular data usage on iOS.
On Android, NetworkStatsManager provides a relatively straightforward approach. On iOS, there doesn't seem to be an equivalent public API.
One possible workaround is using getifaddrs() to read byte counters from interfaces such as pdp_ip*. However, these counters reportedly wrap at 4 GiB, reset on reboot, and rely on undocumented interface names.
Has anyone implemented something similar or are there any better approaches?
I'd appreciate any real-world experience or pointers. Thanks!
r/iOSProgramming • u/YahiaAngelo • 27d ago
Discussion vphone-linux v0.1 is here: Boot iOS 27.1 and iPhone Duo on Linux without a Mac!
vphone-linux v0.1 is here with some cool updates:
- Boot iOS 27.0.1 and iOS 27.1 virtual iPhones.
- iPhone Duo support!
- Much easier setup script with only 2 commands to setup and create a new iPhone vm.
- Lots of performance improvements.
Still not close to a native performance but that's the next step for this project, we should be able to develop iOS apps seamlessly on any machine without the need for a Mac.
Please try it out and let me know if you had any issues or feature requests.
r/iOSProgramming • u/Coderas_AH • 25d ago
Question When iPhone Duo simulator will be available in the Device Hub?
I need to test my app on the iPhone Duo and generate some screenshots, especially since Apple will soon make it mandatory to include screenshots for this specific device.
Does anyone know when the iPhone Duo will become available in the Xcode Device Hub Simulator?
r/iOSProgramming • u/SEPPDROID • 27d ago
Question How do you guys implement navigation for iPhone Duo support?
Back when i started working on this project as a hobby i chose to implement a well known overused navigation setup instead of using Apple's native navigation (tabview). However that meant that for the iPhone duo i had to move some things around. I released the update like this, but im not completely satisfied with it yet (system ui and my ui offcentered e.g.). Any tips, ideas?
Edit: I understand that native TabView UI was the supported way, but for that I wouldn’t have made a post. For this project i chose, like many others for the custom implementation. Originally this wasn’t planned but i remember hitting an limitation while prototyping. But all the apps i know of with an custom navigation haven’t updated with Duo support…
r/iOSProgramming • u/Sea-Arm9235 • 27d ago
Library I built a Hogwarts spellbook to show off custom spoiler reveals in Enriched Markdown, a native SwiftUI Markdown renderer Spoiler
Enriched Markdown for iOS renders Markdown natively in SwiftUI, including `||spoilers||`. By default they're hidden under a particle field, but you can swap the overlay for your own UIView and decide how hidden text looks and how it reveals itself.
To show what that unlocks, I built a Hogwarts spellbook: every spell in the video is a custom overlay revealing the same Markdown in its own way.
Video of the demo is in the comments 👇
Not every app needs a Patronus, so here's a plain blur. It's one view subclass:
final class BlurOverlayView: SpoilerOverlayView {
private static let context = CIContext()
override func layoutSubviews() {
super.layoutSubviews()
guard let input = CIImage(image: concealedTextImage()) else { return }
layer.contents = Self.context.createCGImage(
input.applyingGaussianBlur(sigma: 6), from: input.extent
)
}
}
struct BlurOverlayProvider: SpoilerOverlayProvider {
func makeOverlay(charRange: NSRange, style: SpoilerStyle) -> SpoilerOverlayView {
let view = BlurOverlayView(charRange: charRange)
view.backgroundColor = style.backgroundColor ?? .systemBackground
return view
}
}
EnrichedMarkdownText(markdown)
.markdownSpoilerOverlay(BlurOverlayProvider())concealedTextImage() gives you the hidden words laid out exactly where the text view draws them, so you can blur, pixelate, or scramble the real text and nothing jumps on reveal. For your own animation, override animateReveal(completion:).
Installation: https://docs.swmansion.com/enriched-markdown/ios/basics/installation
If it's useful to you, a ⭐ on GitHub helps more people find it: https://github.com/software-mansion/enriched-markdown
r/iOSProgramming • u/6thDAY • 26d ago
Question Lock app in landscape orientation for iPhone Duo?
I'm finding it difficult to lock my app in landscape mode, i.e. wide-view. I don't want my app to rotate rotation to portrait when the device is rotated. But every time I rotate the simulator to tall-view, i.e. portrait, the app orientation rotates, causing the contents to get squished.
Is this not possible with the Duo, and another view I'm gonna have to support?
r/iOSProgramming • u/FragrantYellow3199 • 28d ago
Humor Popped up in my head during development, lol
r/iOSProgramming • u/matimotof1 • 26d ago
Question query records cloud kit console slow?
Are any of you also having trouble accessing data via the CloudKit Console’s "Query Records" feature? Or is it just incredibly slow?
r/iOSProgramming • u/SnowPudgy • 28d ago
News Slow Animations is coming back to Device Hub
I know this was a pain point for a lot of people but I noticed this in the Xcode 27.2 release notes:
Device Hub in Xcode 27.2 contains multiple improvements:
Slow Motion Animation (Simulators Only)
r/iOSProgramming • u/lanserxt • 28d ago
Tutorial iOS 27: Now Playing Framework
r/iOSProgramming • u/tboy2000 • 27d ago
Question iOS 27beta adds shadow overlay under web app status bar. How to remove?
For the life of me I can't figure out how to remove that gradiant shadow overlay at the top of a web app. See photo. I have tried various suggestions offered by Claude and ChatGPT and nothing works. It's driving me nuts! Anyone know the dev code to remove it please? I would be forever grateful!
r/iOSProgramming • u/100_rv • 28d ago
Discussion Swift 6.4: Async defer doesn't make cleanup cancellation-safe
I wrote a technical walkthrough of a subtle Swift Concurrency issue I wanted to explore.
Imagine a task writing data into a buffered writer. The task gets cancelled, defer runs, and close() gets called. But if close()invokes a cancellation-aware flush(), that flush can throw CancellationError. If the error is swallowed and the writer is marked closed anyway, the cleanup path has run without achieving its intended postcondition.
The article explores two Swift Evolution proposals:
- SE-0493: Async calls in
deferbodies - SE-0504: Task Cancellation Shields
It covers a minimal reproduction, the limits of using Task.detached for cleanup, a narrowly scoped cancellation shield, and a Swift Testing example that checks whether the data was actually flushed rather than merely checking whether close() was called.
One important caveat: the example demonstrates a cancellation-aware cleanup failure, not a claim that every real file API corrupts data when cancelled.
I'd be interested in feedback on the cancellation-shield approach, especially around resource ownership and cleanup guarantees in production code.
r/iOSProgramming • u/BitToKnow • 27d ago
Discussion Made an app over the weekend for iPhone Duo (iOS 27.1) - a simple Pomodoro timer for iPhone. The control over hinge angles provide a fun new way to interact with the app.
x.comLearnt a lot about the folding mechanism and just a whole new way to interact with the apps.
Good thing Apple didn’t opt for iPad apps for the duo. This is way more fun.
r/iOSProgramming • u/computationgraph • 28d ago
Question Trying to get an account for my business email
Anyone know how to get an account for a business email? I keep getting account cannot be created at this time and the developer.apple.com support for creating an account requires an account, same with the contact form or phone support. Using my personal apple account is not an option.
EDIT: I had to call the consumer help line and they redirected me.
r/iOSProgramming • u/roXDesign • 29d ago
Article A checklist of platform decisions for iOS/watchOS apps. What am I missing?
A while ago I asked here what you consider when building an app. Since then I shipped two big updates of my running app for Apple Watch and iPhone, and turned what I learned into a checklist.
It’s not a list of things you must support. It’s things you should consciously decide on, yes or no, before they surprise you:
- Screen sizes (smallest device + longest realistic values)
- Rotation
- Dynamic Type / text size
- iPad, Mac, Vision Pro
- Multiple windows
- Accessibility (VoiceOver, colour as the only signal)
- Live Activities (and how often they really need to update)
- Widgets (sizes and families)
- Complications
- App Intents / Siri / Shortcuts
- Sharing (what goes out, what comes in)
- New device classes coming up
- Gestures (Double Tap, Digital Crown, conflicts with the system)
- Action Button
- Translation (every future feature in every language)
- Animations and Reduce Motion
- Older devices: speed and battery
- iCloud: backup or sync?
- Light and dark mode
Tip: write down every answer, including the no’s and why. And this is iOS/watchOS only. Add Android, tablets or desktop and the list roughly doubles.
Longer version with my reasoning for each point, plus an interactive checklist you can export as Markdown: The list behind every app
Two questions:
- What’s missing? What bit you the hardest?
- English isn’t my first language. I wrote the post in German and translated it with AI. Does it read AI-ish? What gives it away?
r/iOSProgramming • u/samstars100 • 28d ago
Discussion iOS Development using OpenClaw.
I am using OpenClaw through telegram. I create web applications in VPS and web applications are pretty easy to vibe code and also test the output using public urls.
I want to do same for iOS Development. I want to connect to macOS using OpenClaw and develop iOS application completely through telegram. I can create a workflow where any changes will send build to TestFlight and I can test the application that way. But it will be time consuming, makeing build in testflight and test the app only updated through testflight. I want near realtime visualization of the compiled app like simulator but through web and http network. Do you guys have any idea how to achieve this?