r/iOSProgramming • u/EmoticonGuess • 26d ago
r/iOSProgramming • u/MessyBookPilesFTW • 26d ago
News Since when was this a setting in Device Hub?! Copy to clipboard!
r/iOSProgramming • u/NervousRegret6013 • 26d ago
Discussion I have never not regretted updating Xcode
First time I updated refactoring stopped working and now I have to rename things by hand. Now the simulator takes multiple tries to work. I don't get it
r/iOSProgramming • u/dianzhu • 27d 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/trevor2893438 • 27d 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/Coderas_AH • 27d 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/HappyFunBall007 • 27d 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 • 27d 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 • 27d 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 • 27d 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/Lazy-Benefit1863 • 27d 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/6thDAY • 28d 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/matimotof1 • 28d 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/Sea-Arm9235 • 28d 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/SEPPDROID • 28d 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/YahiaAngelo • 28d 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/BitToKnow • 28d 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/tboy2000 • 29d 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/FragrantYellow3199 • 29d ago
Humor Popped up in my head during development, lol
r/iOSProgramming • u/SnowPudgy • 29d 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/samstars100 • 29d 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?
r/iOSProgramming • u/100_rv • 29d 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/lanserxt • 29d ago
Tutorial iOS 27: Now Playing Framework
r/iOSProgramming • u/computationgraph • Oct 26 '26
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.
