Skip to content

Make the iOS test bundle identifier configurable - #48

Merged
ReinaldoAssis merged 1 commit into
mainfrom
fix/ios-test-bundle-id
Oct 22, 2026
Merged

ReinaldoAssis merged 1 commit into
mainfrom
fix/ios-test-bundle-id

Conversation

@ReinaldoAssis

Copy link
Copy Markdown
Owner

Why

npm run tauri ios dev failed with No profiles for 'com.reinaldoassis.atlas' and No Accounts. The production identifier was changed to com.reinaldoassis.atlas for the Play beta, but the personal Xcode team (QNHMJF4W4N, randroi75@gmail.com, free provisioning) still signs with com.randroi75.atlas. The generated project.yml also kept the old id, so the repo was inconsistent.

What changed

  • tools/ios-test-config.mjs writes a gitignored src-tauri/tauri.ios.test.local.json with the test identifier (default com.randroi75.atlas, overridable with ATLAS_IOS_BUNDLE_ID or an argument).
  • New scripts:
    • npm run ios:dev — writes the override and runs tauri ios dev --config <file>
    • npm run ios:build — same for a signed build
    • npm run ios:id — only writes/prints the id
  • The production id in tauri.conf.json is untouched; Tauri syncs PRODUCT_BUNDLE_IDENTIFIER in the Xcode project from the merged config (confirmed in the CLI source: ios dev calls synchronize_project_config).
  • Aligned src-tauri/gen/apple/project.yml and app.xcodeproj/project.pbxproj with com.reinaldoassis.atlas.
  • Documented the flow and the Xcode account requirement in docs/IOS-SIDELOAD.md §2b and AGENTS.md.

Verification

  • npm run check
  • npm test (273)
  • npm run build
  • npm run ios:id generates the expected override for com.randroi75.atlas.

Pending manual check: signed device run after adding the Apple ID in Xcode → Settings → Accounts (the No Accounts part is not fixable from the repo).

- Keep `com.reinaldoassis.atlas` as the production identifier in
  `tauri.conf.json`, but let local signed builds use the App ID tied to the
  personal Xcode team.
- Add `tools/ios-test-config.mjs` + `ios:dev`/`ios:build` scripts: they write
  a gitignored `tauri.ios.test.local.json` (default `com.randroi75.atlas`,
  override with `ATLAS_IOS_BUNDLE_ID`) and pass it through `tauri --config`,
  which syncs `PRODUCT_BUNDLE_IDENTIFIER` in the Xcode project.
- Align the generated `project.yml`/`pbxproj` with the production identifier
  and document the Xcode account requirement (`No Accounts` / `No profiles`).
@ReinaldoAssis
ReinaldoAssis force-pushed the fix/ios-test-bundle-id branch from 86124d9 to 51849a6 Compare October 22, 2026 17:19
@ReinaldoAssis
ReinaldoAssis merged commit 8df1021 into main Oct 22, 2026
4 checks passed
@ReinaldoAssis
ReinaldoAssis deleted the fix/ios-test-bundle-id branch October 22, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant