r/iOSProgramming • • 10h ago

Tutorial Agentic indie iOS development cookbook

1 Upvotes

I have spent about a year learning iOS development from scratch and utilizing agents extensively in the process to build my first app. The result is 1300 swift files, and quite a few lessons learned along the way. I've compiled these into a list of problems and their solutions - I hope you'll find them useful: https://finallyclearsky.com/blog/agentic-indie-ios-development-survival-kit


r/iOSProgramming • • 1h ago

Tutorial iOS 27.1: DeviceHinge

Thumbnail
antongubarenko.substack.com
0 Upvotes

r/iOSProgramming • • 8h ago

Question App Store Connect's new AIGC and Security Assessment declarations for China mainland: how should a self-hosted AI client answer them?

0 Upvotes

Cross-posting this from r/appledevelopers (original thread: https://redd.it/1yal8ey). That thread has 30 comments on Apple's new China mainland declarations and nobody has hit the self-hosted case yet, so I'm asking here too.

I'm looking for clarification regarding the new AI Generated or Synthetic Content (AIGC) and Security Assessment declarations in App Store Connect for apps distributed in China mainland.

I develop Conduit, an open-source iOS client for Hermes Agent, a self-hosted AI agent system.

The architecture is different from a typical AI chatbot application:

  • Conduit does not host AI models or operate an AI inference service.
  • Users connect the app to their own independently managed Hermes servers.
  • All AI inference and agent execution happen on the user's configured backend, not through a service operated by Conduit.
  • Users control their own model providers, server locations, and configurations.
  • Conduit provides the client interface for interacting with those servers.
  • The app also supports shared conversations between users and their independently hosted agents.

With that architecture, I'm unclear how the new declarations should be answered.

  1. AI Generated or Synthetic Content (AIGC)

Does a general-purpose client that displays AI-generated content from user-configured, self-hosted servers count as offering an AIGC service in China mainland?

If so, whose AI filing information would be required when the app developer does not operate the AI service, select the models, or control the backend?

2. Security Assessment

Does displaying content generated by independently hosted agents, or supporting conversations between users connected to their own servers, trigger the Security Assessment requirement?

Is there a distinction between an app that operates an AI content distribution or messaging service and a client that connects to independently operated services?

3. Appropriate declarations

For an application with this architecture, should the developer select "Yes" or "No" for each declaration? If "Yes," what supporting documentation would Apple expect from a developer who does not operate the underlying AI service?

I've already submitted a support request to Apple Developer Support but haven't received a response.

I'd appreciate clarification from an Apple engineer or anyone who has received guidance about similar self-hosted AI clients.

Thank you.


r/iOSProgramming • • 14h ago

Discussion Something I never bothered to ask when learning Swift... Why is the standard for Attributes to be inline rather than on a preceding line?

Thumbnail
gallery
9 Upvotes

I visually prefer newlines, but code search works marginally better on inlined attributes.


r/iOSProgramming • • 18h ago

Article Open-sourced Snagless: SwiftUI @Environment crashes caught at build time, using SwiftSyntax

2 Upvotes

Our codebase has hundreds of `@Environment` call sites. Any one of them can crash in production with "No Observable object of type X found" if a view gets shown without the value injected somewhere above it, and the compiler can't see it. Every fix I found started with "first, change all your call sites."

So I built Snagless, a SwiftPM/Xcode build plugin. It reads your SwiftUI source with SwiftSyntax, works out which view shows which across modules, and fails the build when a view can appear without a value it needs. Zero code changes, about 90 ms on a 431-file app.

Built with Claude Code, and the write-up is upfront about every time the AI was wrong and what caught it.

Write-up: https://tarek-builds.dev/p/swiftui-environment-crashes-compile-just-fine-so-i-made-them-fail-the-build/
Repo: https://github.com/tareksabry1337/snagless

Happy to answer questions.


r/iOSProgramming • • 7h ago

Question CLMonitor misses geofence events on a locked phone

2 Upvotes

We're moving from legacy CLLocationManager region monitoring to CLMonitor. Legacy works reliably for us in the background and while locked. To compare, we run both side by side on the same device (iOS 27.2.1) with the same regions.

Setup
CircularGeographicCondition (>= 100 m, under 20 conditions), CLServiceSession(authorization: .always) retaken at every launch, one task always awaiting monitor.events.

Problem
iOS relaunches the app in the background for an entry while the phone is locked. CLMonitor.h says to wait for UIApplicationProtectedDataDidBecomeAvailable before creating a CLMonitor, so we wait. The app is suspended before unlock, the monitor is never created, and both that entry and the later exit are lost. Legacy catches both.

But the same header says Core Location stops monitoring a condition if an event is pending and no CLMonitor is configured to receive it. And Apple's own sample creates the monitor at launch with no protected-data check.

Has anyone shipped CLMonitor geofencing that works on a locked phone? Do you create the monitor immediately on a background relaunch (after first unlock since boot)? Ever seen persistenceUnavailable when you do?

Also asked on the Apple Developer Forums: https://developer.apple.com/forums/thread/861070


r/iOSProgramming • • 8h ago

Question apple ads campaign no running ad groups

2 Upvotes

nothing is starting any help ?


r/iOSProgramming • • 14h ago

Discussion If I had to build an app, I wouldn't choose Jetpack Compose—especially if it's for creating UIs for iOS.

Thumbnail youtrack.jetbrains.com
1 Upvotes

VoiceOver misses accessible elements generated by the Compose tree.

VoiceOver sometimes gets confused when navigating between containers.

Jetpack Compose’s technical choices limit VoiceOver’s proper functioning, particularly the decision to use a lazy tree to improve performance.

And the developers don’t seem to be able to fix all these reported issues.