feat: Add iOS target for sideload builds #373

Closed
mikelgmh wants to merge 2 commits from mikelgmh/open-grind:ios-init into main
First-time contributor

This MR adds the Tauri iOS target (src-tauri/gen/apple/) so Open Grind can be built as an unsigned .ipa and 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 by tauri ios init (project.yml, Info.plist, entitlements, asset catalog, Podfile, xcodeproj). Mirrors how gen/android/ is tracked. build/ and Externals/ stay gitignored.
  • src-tauri/tauri.ios.conf.json (new) — iOS-only overrides, merged automatically:
    • version: "0.1.0" and bundle.iOS.bundleVersion: "1050", because Apple's CFBundleShortVersionString / CFBundleVersion accept numbers and dots only, so 0.1.0-beta.5-dev is rejected at ios init. 1050 matches Android's versionCode.
    • minimumSystemVersion: "15.0".
  • src-tauri/Info.ios.plist (new) — merged into the app Info.plist: NSLocationWhenInUseUsageDescription and NSLocationAlwaysAndWhenInUseUsageDescription, required by the geolocation plugin (requestWhenInUseAuthorization).
  • iOS app icons — tauri ios init generated a default Tauri icon set; replaced with the project's own icons from src-tauri/icons/ios/ (produced by scripts/gen-icons.sh from contrib/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 aarch64

There's a video attached showing how its working on my iPhone with ios 27 BETA.

This MR adds the Tauri iOS target (`src-tauri/gen/apple/`) so Open Grind can be built as an unsigned `.ipa` and 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 by `tauri ios init` (project.yml, Info.plist, entitlements, asset catalog, Podfile, xcodeproj). Mirrors how `gen/android/` is tracked. `build/` and `Externals/` stay gitignored. - `src-tauri/tauri.ios.conf.json` (new) — iOS-only overrides, merged automatically: - `version: "0.1.0"` and `bundle.iOS.bundleVersion: "1050"`, because Apple's `CFBundleShortVersionString` / `CFBundleVersion` accept numbers and dots only, so `0.1.0-beta.5-dev` is rejected at `ios init`. `1050` matches Android's `versionCode`. - `minimumSystemVersion: "15.0"`. - `src-tauri/Info.ios.plist` (new) — merged into the app Info.plist: `NSLocationWhenInUseUsageDescription` and `NSLocationAlwaysAndWhenInUseUsageDescription`, required by the geolocation plugin (`requestWhenInUseAuthorization`). - iOS app icons — `tauri ios init` generated a default Tauri icon set; replaced with the project's own icons from `src-tauri/icons/ios/` (produced by `scripts/gen-icons.sh` from `contrib/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 aarch64` There's a video attached showing how its working on my iPhone with ios 27 BETA.
Fix iOS app icon
Some checks failed
check / check (pull_request) Has been cancelled
e9e57d7f95
First-time contributor

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-grind iOS 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 was 4b252487224220f569b4c92bfa8d7a0d5c8b3e52; 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

  • 2026-08-21: a Mac/Xcode build, Personal Team signature and USB installation on a physical iPhone were completed. The user confirmed that the app started and worked in real mode, superseding an earlier demo-only checkpoint.
  • 2026-09-13: the user reported roughly a month of frequent real use, with signing expiry the recurring interruption. This is a user report, not a measured 30-day availability result or a complete feature-by-feature regression test.
  • 2026-09-05: after repairing the renewal workflow, USB launch was verified at 21:58:11 UTC+8. At 22:14:02, renewal, wireless overwrite installation and process launch were verified with the target iPhone providing its own hotspot and the Mac connected to it. USB was absent before and after this test; the phone was unlocked. The stable app (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 .app onto 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.a layout. 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 Found while 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:

  1. Keep an explicit pending-install state. A valid local profile or an old successful receipt must not clear it. A failed delivery retries with the same valid profile rather than unnecessarily requesting another one.
  2. Check actual device communication. We use a devicectl device info lockState request, rather than interpreting human-readable available/connected labels. 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.
  3. Validate profile identity and time. Check the intended team, bundle identifier and target device; parse expiry in UTC. Our old parser introduced an eight-hour offset. That does not prove the precise time at which the user lost access.
  4. Verify delivery, not just exit status or an unchanged app version. On USB we checked the exact installed profile UUID. For the hotspot test, the successful CoreDevice install receipt's bundle ID and new installation path matched device readback, followed by a successful process launch. We bind the local receipt to the device, profile hash, app executable/Info.plist hashes and version. These are different evidence levels; path matching is not a direct profile-content readback.
  5. Keep trust separate from installation. After reinstalling, the failure changed to Needs Explicit User Trust. The user trusted the developer and launch then succeeded. This state should wait for the user, not trigger repeated reinstallations.
  6. Make interrupted renewal recoverable. A file lock, bounded subprocesses and a journal for temporarily moved provisioning profiles prevent overlapping runs and allow profile restoration after failure/interruption.

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 -n and ideviceprovision --network found 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, including Tauri.Invoke.resolve and Tauri.Plugin, from repeated Swift object members inside the existing libapp.a. Replacing global -ObjC with -force_load scoped 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.

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-grind`](https://git.opengrind.org/codexrunner/open-grind) iOS 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 was `4b252487224220f569b4c92bfa8d7a0d5c8b3e52`; 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 - **2026-08-21:** a Mac/Xcode build, Personal Team signature and USB installation on a physical iPhone were completed. The user confirmed that the app started and worked in real mode, superseding an earlier demo-only checkpoint. - **2026-09-13:** the user reported roughly a month of frequent real use, with signing expiry the recurring interruption. This is a user report, not a measured 30-day availability result or a complete feature-by-feature regression test. - **2026-09-05:** after repairing the renewal workflow, USB launch was verified at 21:58:11 UTC+8. At 22:14:02, renewal, wireless overwrite installation and process launch were verified with **the target iPhone providing its own hotspot and the Mac connected to it**. USB was absent before and after this test; the phone was unlocked. The stable app (`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 `.app` onto 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.a` layout. 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 Found` while 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: 1. **Keep an explicit pending-install state.** A valid local profile or an old successful receipt must not clear it. A failed delivery retries with the same valid profile rather than unnecessarily requesting another one. 2. **Check actual device communication.** We use a `devicectl device info lockState` request, rather than interpreting human-readable `available`/`connected` labels. 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. 3. **Validate profile identity and time.** Check the intended team, bundle identifier and target device; parse expiry in UTC. Our old parser introduced an eight-hour offset. That does not prove the precise time at which the user lost access. 4. **Verify delivery, not just exit status or an unchanged app version.** On USB we checked the exact installed profile UUID. For the hotspot test, the successful CoreDevice install receipt's bundle ID and new installation path matched device readback, followed by a successful process launch. We bind the local receipt to the device, profile hash, app executable/Info.plist hashes and version. These are different evidence levels; path matching is not a direct profile-content readback. 5. **Keep trust separate from installation.** After reinstalling, the failure changed to `Needs Explicit User Trust`. The user trusted the developer and launch then succeeded. This state should wait for the user, not trigger repeated reinstallations. 6. **Make interrupted renewal recoverable.** A file lock, bounded subprocesses and a journal for temporarily moved provisioning profiles prevent overlapping runs and allow profile restoration after failure/interruption. 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 -n` and `ideviceprovision --network` found 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**, including `Tauri.Invoke.resolve` and `Tauri.Plugin`, from repeated Swift object members inside the existing `libapp.a`. Replacing global `-ObjC` with `-force_load` scoped 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.
Owner

Superseded by #502. Thank you.

Superseded by #502. Thank you.
hloth closed this pull request 2026-10-26 12:39:06 +01:00
Owner

@impengpong wrote in #373 (comment):

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-grind iOS 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 was 4b252487224220f569b4c92bfa8d7a0d5c8b3e52; 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

* **2026-08-21:** a Mac/Xcode build, Personal Team signature and USB installation on a physical iPhone were completed. The user confirmed that the app started and worked in real mode, superseding an earlier demo-only checkpoint.

* **2026-09-13:** the user reported roughly a month of frequent real use, with signing expiry the recurring interruption. This is a user report, not a measured 30-day availability result or a complete feature-by-feature regression test.

* **2026-09-05:** after repairing the renewal workflow, USB launch was verified at 21:58:11 UTC+8. At 22:14:02, renewal, wireless overwrite installation and process launch were verified with **the target iPhone providing its own hotspot and the Mac connected to it**. USB was absent before and after this test; the phone was unlocked. The stable app (`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 .app onto 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.a layout. 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 Found while 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:

1. **Keep an explicit pending-install state.** A valid local profile or an old successful receipt must not clear it. A failed delivery retries with the same valid profile rather than unnecessarily requesting another one.

2. **Check actual device communication.** We use a `devicectl device info lockState` request, rather than interpreting human-readable `available`/`connected` labels. 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.

3. **Validate profile identity and time.** Check the intended team, bundle identifier and target device; parse expiry in UTC. Our old parser introduced an eight-hour offset. That does not prove the precise time at which the user lost access.

4. **Verify delivery, not just exit status or an unchanged app version.** On USB we checked the exact installed profile UUID. For the hotspot test, the successful CoreDevice install receipt's bundle ID and new installation path matched device readback, followed by a successful process launch. We bind the local receipt to the device, profile hash, app executable/Info.plist hashes and version. These are different evidence levels; path matching is not a direct profile-content readback.

5. **Keep trust separate from installation.** After reinstalling, the failure changed to `Needs Explicit User Trust`. The user trusted the developer and launch then succeeded. This state should wait for the user, not trigger repeated reinstallations.

6. **Make interrupted renewal recoverable.** A file lock, bounded subprocesses and a journal for temporarily moved provisioning profiles prevent overlapping runs and allow profile restoration after failure/interruption.

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 -n and ideviceprovision --network found 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, including Tauri.Invoke.resolve and Tauri.Plugin, from repeated Swift object members inside the existing libapp.a. Replacing global -ObjC with -force_load scoped 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.

@claude summarize

@impengpong wrote in https://git.opengrind.org/open-grind/open-grind/pulls/373#issuecomment-4507: > 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-grind`](https://git.opengrind.org/codexrunner/open-grind) iOS 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 was `4b252487224220f569b4c92bfa8d7a0d5c8b3e52`; 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)What actually worked > > * **2026-08-21:** a Mac/Xcode build, Personal Team signature and USB installation on a physical iPhone were completed. The user confirmed that the app started and worked in real mode, superseding an earlier demo-only checkpoint. > > * **2026-09-13:** the user reported roughly a month of frequent real use, with signing expiry the recurring interruption. This is a user report, not a measured 30-day availability result or a complete feature-by-feature regression test. > > * **2026-09-05:** after repairing the renewal workflow, USB launch was verified at 21:58:11 UTC+8. At 22:14:02, renewal, wireless overwrite installation and process launch were verified with **the target iPhone providing its own hotspot and the Mac connected to it**. USB was absent before and after this test; the phone was unlocked. The stable app (`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)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 `.app` onto 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.a` layout. 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)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 Found` while 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: > > 1. **Keep an explicit pending-install state.** A valid local profile or an old successful receipt must not clear it. A failed delivery retries with the same valid profile rather than unnecessarily requesting another one. > > 2. **Check actual device communication.** We use a `devicectl device info lockState` request, rather than interpreting human-readable `available`/`connected` labels. 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. > > 3. **Validate profile identity and time.** Check the intended team, bundle identifier and target device; parse expiry in UTC. Our old parser introduced an eight-hour offset. That does not prove the precise time at which the user lost access. > > 4. **Verify delivery, not just exit status or an unchanged app version.** On USB we checked the exact installed profile UUID. For the hotspot test, the successful CoreDevice install receipt's bundle ID and new installation path matched device readback, followed by a successful process launch. We bind the local receipt to the device, profile hash, app executable/Info.plist hashes and version. These are different evidence levels; path matching is not a direct profile-content readback. > > 5. **Keep trust separate from installation.** After reinstalling, the failure changed to `Needs Explicit User Trust`. The user trusted the developer and launch then succeeded. This state should wait for the user, not trigger repeated reinstallations. > > 6. **Make interrupted renewal recoverable.** A file lock, bounded subprocesses and a journal for temporarily moved provisioning profiles prevent overlapping runs and allow profile restoration after failure/interruption. > > > 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 -n` and `ideviceprovision --network` found 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)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)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**, including `Tauri.Invoke.resolve` and `Tauri.Plugin`, from repeated Swift object members inside the existing `libapp.a`. Replacing global `-ObjC` with `-force_load` scoped 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. @claude summarize
First-time contributor

✅ Completed in 16s

Log · 4 steps
  • Queued · 0s
  • Reading thread · 0s
  • Summarizing · 12s
  • Writing the summary · 4s

claude-opus-5-5 · 32,606 input · 959 output · 21,521 cached

✅ Completed in 16s <details><summary>Log · 4 steps</summary> - [x] Queued · 0s - [x] Reading thread · 0s - [x] Summarizing · 12s - [x] Writing the summary · 4s </details> <sub>claude-opus-5-5 · 32,606 input · 959 output · 21,521 cached</sub>
First-time contributor

@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.

  • A Release build from Xcode, signed with a free Personal Team, stayed in real use for weeks; signing expiry was the main interruption
  • Renewal once reported success but never delivered the new profile to the phone; the fixed flow tracks each step separately and confirms the profile actually reached the phone
  • Wireless renewal and in-place reinstall that kept app data both worked

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.

@hloth impengpong posted a [field report](https://git.opengrind.org/open-grind/open-grind/pulls/373#issuecomment-4507) on running an older third-party iOS fork on an iPhone, as input for this PR's sideloading docs and acceptance checklist. - A Release build from Xcode, signed with a free Personal Team, stayed in real use for weeks; signing expiry was the main interruption - Renewal once reported success but never delivered the new profile to the phone; the fixed flow tracks each step separately and confirms the profile actually reached the phone - Wireless renewal and in-place reinstall that kept app data both worked 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.
Some checks failed
check / check (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No description provided.