r/iOSProgramming • • 7h ago

Question Guideline 5.1.1(V) accessing store VERY CONFUSED.

5 Upvotes

I have a multiplayer game where users are able to play without signing in, however, rewards and customisation are only available to users who have an account. I have a store which sells coins which aren't obtainable in any way without an account.

I have got this message from apple TWICE:

Issue Description

Specifically, the app requires users to register before accessing store. Apps may not require users to enter personal information to function, except when directly relevant to the core functionality of the app or required by law.

Next Steps

Revise the app to let users freely access the app's features that are not account based. The app may still require registration for other features that are account based.

---

Do they expect me to allow non signed in accounts to have the same functionality as signed in accounts? I have asked them to clarify if they mean just being able to see the store/products without being able to buy and they hit me with literally the exact same message. I am confused and fustrated. Send help.


r/iOSProgramming • • 18h ago

Question How to recreate the native draggable tab bar indicator without the background?

4 Upvotes

Hey everyone,
I’m currently developing a Swift app and want to recreate the native iOS tab bar interaction, but with just the text labels and the draggable selection pill, without the surrounding tab bar background.
The ChatGPT iOS app implemented pretty much exactly what I’m looking for in a recent update.
I’ve already tried a bunch of different approaches:

  • Modifying existing tab bar recreations on GitHub to remove the background
  • Looking for standalone implementations of the draggable selection pill
  • Exploring projects that use undocumented APIs

Unfortunately, most of these approaches are either too limited or don’t quite capture the native look and feel, especially when it comes to animations and dragging behavior.
Does anyone have an idea how to achieve this? Ideally using public APIs, but I’d also be interested in understanding how ChatGPT implements it.
I’ve attached a screen recording showing exactly what I’m trying to achieve.
Any help would be greatly appreciated!


r/iOSProgramming • • 1h ago

Question RealityKit vs Unity for a lightweight procedural 3D game — when is switching worth it?

2 Upvotes

I've been building a small, low-poly procedural 3D game using Swift and RealityKit, and I'm considering whether moving to Unity would be a sensible long-term decision.

I'm an experienced software engineer, primarily from a web/frontend background, but game development is relatively new territory for me.

I've been using AI to help with implementation, which has made working with unfamiliar frameworks surprisingly accessible.

However, I'm conscious that AI can produce working solutions without necessarily making the best architectural or performance decisions. I'm particularly interested in understanding the trade-offs before committing further to either approach.

RealityKit has worked reasonably well so far, and I like keeping things native. But I'm wondering whether I'm making life unnecessarily difficult by using a framework that isn't primarily intended as a conventional game engine.

  • For relatively simple procedural 3D games, what are the practical advantages of Unity over RealityKit?
  • Is Unity's additional runtime and application-size overhead significant on iOS?
  • Does RealityKit offer meaningful advantages in performance, efficiency or integration with Apple platforms?
  • Are there particular limitations of RealityKit that tend to emerge as projects grow?
  • If you've migrated between the two, what would you do differently?

Cross-platform development is appealing, particularly the possibility of Android support, but it's not an immediate requirement.

I'm also interested in what experienced RealityKit developers recommend monitoring or validating during development, especially when AI is generating much of the implementation.

Ultimately, I'm trying to make an informed architectural decision rather than switching frameworks simply because Unity is the more established game development platform.

I'd be interested to hear from anyone who's worked with both.


r/iOSProgramming • • 11h ago

Discussion I run a full aarch64 Linux VM inside an iOS app, without JIT, so an AI agent gets a real shell

2 Upvotes

I've been building Pallas Agent, an iOS assistant where the agent loop runs on the phone itself. The models are still in the cloud (ChatGPT sign-in or any OpenAI-compatible endpoint); what runs on the phone is the harness, the tools, and your files.

Models are way better at bash and Python than at any custom tool API I could design, so I wanted the agent to have a real Linux shell on-device.

The stack

  • Swift/SwiftUI app. The agent harness (a mobile build of the open-source DeepSeek Harness) runs in-process on nodejs-mobile without JIT, behind a loopback port.
  • The first time the model calls bash, the app dlopens QEMU 10.0.12-utm (from UTM SE) and boots an aarch64 virt machine in the same process. TCG targets UTM's TCTI (aarch64-tcti) threaded-code backend, turning guest code into chains of addresses of precompiled gadgets. Since the app only ever writes data and never executable memory, it works without a JIT entitlement or a jailbreak.
  • Guest is unmodified Linux 6.12 with an Ubuntu 24.04 arm64 userland, a read-only root, and bubblewrap dropping privileged capabilities (no SYS_ADMIN, SYS_MODULE, SYS_PTRACE, etc., keeping only basic file/uid caps). The app's workspace is mounted over virtio-9p so files stay in the app's Documents directory.
  • Preinstalled: bash, Python 3.12, Node 24, npm, git, curl, ripgrep, pandas, NumPy, Matplotlib, DuckDB, and Polars.

Numbers (on iPhone, interpreter only)

  • Cold boot to first command dropped from 28s to 11s by switching to a custom uncompressed initramfs (just the 15 required modules plus 3 optional ones) and precompiling the V8 code cache and .pyc files onto a read-only tools disk.
  • After that, launches restore a whole-machine snapshot over QMP in ~1.6s.
  • Translation is under 5% of the runtime; interpretation is most of it, and for file-heavy workloads 9p round trips take over. Rough ballpark: guest work runs about 4-8x slower than TCG on a Mac.

Things that bit me

  • Random Rust crashes. This one took a while to track down: ripgrep died in ~45 out of 120 runs. Turned out TCTI's cmp_vec had the LT/LE and LTU/LEU gadgets swapped, so cmlt #0 evaluated true for zero lanes and Rust's SwissTable HashMap silently lost entries. Instead of rebuilding QEMU from scratch, I patched 8 bytes in the prebuilt binary's branch table. Upstream had actually fixed the same bug too (utmapp/qemu ed597a6).
  • Node 24's fetch taking down the whole engine. undici calls socket.setTypeOfService(0) on every new connection. On iOS that returns EINVAL if QEMU's port forward has already reset the connection, and it escaped as an uncaught exception. Switched health checks to node:http.
  • Passing V8 flags broke the code cache. Even a single non-default flag changes V8's flag hash, which makes Node silently ignore its built-in code cache and noticeably slows down startup.
  • 4 vCPUs ran slower than 2 because the extra two landed on efficiency cores.
  • iOS reclaims listening sockets when an app is suspended, which silently kills slirp's hostfwd. Rather than rebooting the guest on resume, the host just re-adds the forward over QMP.

Why not iSH? iSH pioneered this on iOS with user-mode i386 and a reimplemented syscall layer, which is much lighter and has no boot time. I went with full-system aarch64 and a real kernel mainly so official arm64 glibc binaries, namespaces, and bubblewrap work out of the box. Snapshot restore hides most of the boot cost.

The QEMU patch, guest corresponding source, and a longer write-up (including a side-by-side with iSH) are here: https://github.com/deemo0666/pallas-vm

The app: https://github.com/deemo0666/pallas-agent

If you're curious about any part of the QEMU-on-iOS setup, ask away.