feat: Add iOS target for sideload builds #373
No reviewers
Labels
No labels
app
app
bug
app
enhancement
client side exclusive
closed
completed
closed
duplicate
closed
invalid
closed
not open grind
closed
not planned
closed
question
🗳️ community vote
⚠️ critical
discussion
docs
emulator
help wanted
paywalled
bypassable
paywalled
non-bypassable
paywalled
unconfirmed
pr/dubious
question
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
open-grind/open-grind!373
Loading…
Reference in a new issue
No description provided.
Delete branch "mikelgmh/open-grind:ios-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This MR adds the Tauri iOS target (
src-tauri/gen/apple/) so Open Grind can be built as an unsigned.ipaand sideloaded on a physical iPhone with a free Apple ID (AltStore / Sideloadly). There are no code changes, only iOS scaffolding plus config.What is included
src-tauri/gen/apple/— Xcode project generated bytauri ios init(project.yml, Info.plist, entitlements, asset catalog, Podfile, xcodeproj). Mirrors howgen/android/is tracked.build/andExternals/stay gitignored.src-tauri/tauri.ios.conf.json(new) — iOS-only overrides, merged automatically:version: "0.1.0"andbundle.iOS.bundleVersion: "1050", because Apple'sCFBundleShortVersionString/CFBundleVersionaccept numbers and dots only, so0.1.0-beta.5-devis rejected atios init.1050matches Android'sversionCode.minimumSystemVersion: "15.0".src-tauri/Info.ios.plist(new) — merged into the app Info.plist:NSLocationWhenInUseUsageDescriptionandNSLocationAlwaysAndWhenInUseUsageDescription, required by the geolocation plugin (requestWhenInUseAuthorization).tauri ios initgenerated a default Tauri icon set; replaced with the project's own icons fromsrc-tauri/icons/ios/(produced byscripts/gen-icons.shfromcontrib/logo/app-icon.svg).No personal data is committed: the Apple development team is passed via
APPLE_DEVELOPMENT_TEAM, never stored in the repo.You can generate your own .ipa file using your Macbook using the command:
bunx tauri ios build --no-sign --target aarch64There's a video attached showing how its working on my iPhone with ios 27 BETA.
Adding a native iOS field report that may help with the sideloading documentation and acceptance checklist for this PR, especially keeping a Personal Team installation usable after the initial build.
Scope and provenance. This is historical experience with the third-party
codexrunner/open-grindiOS fork, not a test of this PR or current upstream main, and not a claim that I authored the iOS port. The local source baseline recorded for that fork was4b252487224220f569b4c92bfa8d7a0d5c8b3e52; local changes existed, so this is not a claim about an unmodified checkout of that commit. These observations concern the native Tauri app installed through Xcode, not our later browser/PWA work or a standalone login helper.What actually worked
0.1.0.4) was installed over the existing copy with its app data retained, without uninstalling or rebuilding the application.This establishes a practical native build → install → real-use → renew/recover path for that older fork. It does not establish current API compatibility or validate this PR's specific IPA/AltStore/Sideloadly path.
Build and installation path
Our successful path used an Apple Silicon Mac, Xcode, the Rust iOS toolchain and the fork's generated Tauri Apple project. We selected Xcode with a per-command
DEVELOPER_DIR, supplied our own bundle identifier/Personal Team configuration locally, built Release, and installed the signed.apponto the paired iPhone through Xcode/CoreDevice. Developer trust on the phone was a separate required step.Release matters here only as a historical qualification: an earlier Debug build hit a mismatch in the expected
Externals/arm64/debug/libapp.alayout. That was not investigated against this PR. Also, the successfully exercised installation artifact was.app; I have not independently tested the unsigned-IPA build or third-party installer flow proposed here. Signing identities, certificates, provisioning profiles and device identifiers stayed local.Keeping the installation usable
The important failure was not the initial build. A scheduled task successfully created a fresh profile, marked the device unavailable and skipped installation, then later saw that the Mac's profile was still valid and returned success without delivering it to the phone. SpringBoard subsequently reported
Profile Missing / Provisioning Profile Not Foundwhile the app itself remained installed.Our corrected maintenance flow separates three states: a profile prepared on the Mac, that profile/app actually installed on the phone, and the installed app permitted to launch. It re-signs a stable app payload after refreshing provisioning through a small Xcode provisioner; it does not require rebuilding the application each week.
The useful invariants were:
devicectl device info lockStaterequest, rather than interpreting human-readableavailable/connectedlabels. The old label parser did contain a bug, but the original connection status was not retained, so we cannot attribute that particular missed installation to it.Needs Explicit User Trust. The user trusted the developer and launch then succeeded. This state should wait for the user, not trigger repeated reinstallations.We used a 30-minute check interval and a 72-hour renewal lead time. Scheduled checks did not launch the app; launch verification was explicit. This still requires an awake/logged-in Mac, reachable Apple signing services, a paired/reachable phone, and any necessary user unlock/trust. It is not unlimited unattended signing while the phone is offline.
One useful wireless diagnostic:
idevice_id -nandideviceprovision --networkfound no device in this setup, while Xcode/CoreDevice communication, signing, installation and launch over the hotspot succeeded. Failure of those older discovery tools alone did not establish that wireless delivery was unavailable.Verification and remaining gaps
The renewal state machine has 23 offline fault-injection tests, rerun successfully on 2026-10-24. They cover pending delivery after signing, disconnected devices, failed installation/retry, stale or wrong-device receipts, changed profiles, missing installed profiles, trust/launch retries, exact installation-path matching, UTC expiry and interrupted profile restoration. These use synthetic fixtures/mocks; they are not 23 physical-device tests.
For this PR, I would keep native real-mode use, unsigned-IPA installation, profile expiry/recovery, data-preserving overwrite installation, explicit trust recovery and wireless renewal as separately marked acceptance items. My historical evidence covers the older fork's native use and Xcode/CoreDevice maintenance path only. I have not tested this PR, newer iOS versions, background behavior, notifications, all media flows, App Store distribution or every account/login method.
Disclosure: this report was organized with AI assistance and checked against our dated project records and existing tests. No account data, device identifiers or signing material is included.
Additional native SDK integration checkpoint (2026-09-30)
A later, separate integration in the same historical fork exposed a useful linker boundary. Adding a category-based Objective-C SDK (DouyinOpenSDK 4.2.5) through CocoaPods introduced global
-ObjC. The preserved failed build reports 317 duplicate symbols, includingTauri.Invoke.resolveandTauri.Plugin, from repeated Swift object members inside the existinglibapp.a. Replacing global-ObjCwith-force_loadscoped to that SDK binary produced a successful Release build. This is an observed workaround for our existing static-library layout, not a diagnosis of this PR or a recommendation to change its link flags.We also explicitly disabled generated Info.plist (
GENERATE_INFOPLIST_FILE=NO) so the existing version fields survived, verified the built artifact and installed version, and updated the renewal tool's separately retained app payload so its next run would not restore the older app. The user accepted the sharing result on a physical phone; we do not claim automated UI acceptance or seamless opening of the recipient's link. Current PR #373 does not include this SDK; this note documents native SDK integration and packaging experience, not a request to add that integration.Superseded by #502. Thank you.
@impengpong wrote in #373 (comment):
@claude summarize
✅ Completed in 16s
Log · 4 steps
claude-opus-5-5 · 32,606 input · 959 output · 21,521 cached
@hloth
impengpong posted a field report on running an older third-party iOS fork on an iPhone, as input for this PR's sideloading docs and acceptance checklist.
The report proposes separate acceptance items for each of these paths. It also includes a linker workaround from a later SDK integration and says it is not a change request for this PR.
Pull request closed