Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

ci: build the iOS app on Xcode Cloud from pinned packages

leepokaife1425a4c6a8
diff --git a/.github/workflows/ios-submit.yml b/.github/workflows/ios-submit.yml
index c27623dd..90347c2f 100644
--- a/.github/workflows/ios-submit.yml
+++ b/.github/workflows/ios-submit.yml
@@ -28,4 +28,7 @@ jobs:
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_PRIVATE_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
VERSION: ${{ inputs.version || github.ref_name }}
- run: python3 tools/asc-submit.py "${VERSION#v}"
+ run: |
+ # A tag run waits for the build Xcode Cloud starts now, not an older upload.
+ [[ "$GITHUB_EVENT_NAME" == push ]] && export SINCE=$(date -u +%Y-%m-%dT%H:%M:%S)
+ python3 tools/asc-submit.py "${VERSION#v}"
diff --git a/.gitignore b/.gitignore
index efea8f0c..e3858e66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,8 @@ build/
.build/
.swiftpm/
Package.resolved
+# Xcode Cloud resolves packages only from the checked-in pins
+!apps/Codync.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Secrets
*.p8
diff --git a/apps/Codync.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/apps/Codync.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
new file mode 100644
index 00000000..46157b3d
--- /dev/null
+++ b/apps/Codync.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -0,0 +1,69 @@
+{
+ "originHash" : "eeae096a19644f764cb7e1451017412c7bb2c310ea1686dc71ef0b7959688a0d",
+ "pins" : [
+ {
+ "identity" : "clerk-ios",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/clerk/clerk-ios",
+ "state" : {
+ "revision" : "4ca130b977cfa03dd08de7b314bb379cc59978d7",
+ "version" : "1.5.6"
+ }
+ },
+ {
+ "identity" : "nuke",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/kean/Nuke.git",
+ "state" : {
+ "revision" : "30f7a7e72e0607d304fbf69c799474bd5fb6d1ce",
+ "version" : "13.2.0"
+ }
+ },
+ {
+ "identity" : "phonenumberkit",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/PhoneNumberKit/PhoneNumberKit",
+ "state" : {
+ "revision" : "faf1703e6fc71c699e911ff0e306c58ad7c756c0",
+ "version" : "5.0.11"
+ }
+ },
+ {
+ "identity" : "sparkle",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/sparkle-project/Sparkle",
+ "state" : {
+ "revision" : "eef1a539a373c1f1a320624b1130fc5de7b2e100",
+ "version" : "2.10.0"
+ }
+ },
+ {
+ "identity" : "swift-argument-parser",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/apple/swift-argument-parser",
+ "state" : {
+ "revision" : "6a52f3251125d74daf04fcbd5e6f08a75d074382",
+ "version" : "1.8.2"
+ }
+ },
+ {
+ "identity" : "swiftterm",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/migueldeicaza/SwiftTerm.git",
+ "state" : {
+ "revision" : "7691f85b222a67a66b58499e1b2647443cf0dda7",
+ "version" : "1.18.0"
+ }
+ },
+ {
+ "identity" : "webrtc",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/stasel/WebRTC.git",
+ "state" : {
+ "revision" : "4266157cd08f92115de885ab12d87196a8db87e1",
+ "version" : "153.0.0"
+ }
+ }
+ ],
+ "version" : 3
+}
diff --git a/apps/Codync.xcodeproj/xcshareddata/xcodecloud/manifest.json b/apps/Codync.xcodeproj/xcshareddata/xcodecloud/manifest.json
new file mode 100644
index 00000000..1c1ee0ef
--- /dev/null
+++ b/apps/Codync.xcodeproj/xcshareddata/xcodecloud/manifest.json
@@ -0,0 +1,9 @@
+{
+ "id" : "c305582a-fff6-4ae4-bbc7-c7953e435189",
+ "targets" : [
+ {
+ "id" : "6f1bf9d8-fd3d-43f6-a447-690e5b781c9a",
+ "name" : "iOS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/docs/guides/development.md b/docs/guides/development.md
index 5a88bcc0..3f854acb 100644
--- a/docs/guides/development.md
+++ b/docs/guides/development.md
@@ -93,4 +93,4 @@ Versions are defined in `apps/project.yml`; keep the host package version aligne
## iOS releases (Xcode Cloud)
-The Xcode Cloud workflow on the Codync product starts on tag changes matching `v*` (the tags Auto Tag pushes after a version bump on `main`), archives the `iOS` scheme in Release with deployment preparation **TestFlight and App Store** (the "Internal Testing Only" option produces builds App Review can't take) and uploads it to App Store Connect. Xcode Cloud overrides the build number with its own counter (`CI_BUILD_NUMBER`, configured under Xcode Cloud settings → Build Number in App Store Connect), so `CURRENT_PROJECT_VERSION` in `project.yml` is only the local default. The checked-in `apps/Codync.xcodeproj` is what the cloud builds: regenerate it whenever `project.yml` changes. The `Submit iOS` GitHub workflow (`.github/workflows/ios-submit.yml` → `tools/asc-submit.py`, secrets `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY`) runs on the same tag: it waits for that version's build to finish processing, then submits it for App Review, released automatically after approval. The latest version wins: a version still *Waiting for Review* is pulled back, renamed and resubmitted with the new build; one already *In Review* or approved is left alone (rerun the workflow with the version once it is out). Empty *What's New* fields get a generic "Bug fixes and improvements" text; write real notes in App Store Connect before the tag when a release deserves them. `DRY_RUN=1 tools/asc-submit.py <version>` prints the writes without making them.
+The Xcode Cloud workflow on the Codync product starts on tag changes matching `v*` (the tags Auto Tag pushes after a version bump on `main`), archives the `iOS` scheme in Release with deployment preparation **TestFlight and App Store** (the "Internal Testing Only" option produces builds App Review can't take) and uploads it to App Store Connect. Xcode Cloud overrides the build number with its own counter (`CI_BUILD_NUMBER`, configured under Xcode Cloud settings → Build Number in App Store Connect), so `CURRENT_PROJECT_VERSION` in `project.yml` is only the local default. The checked-in `apps/Codync.xcodeproj` is what the cloud builds: regenerate it whenever `project.yml` changes, and commit `apps/Codync.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved` whenever a package version changes (Xcode Cloud never resolves packages itself; copy `kit/Package.resolved` there if Xcode wrote it to `kit/`). Xcode Cloud reads public package repositories without any connection; its setup wizard still blocked on Sparkle (asking for a GitHub app install only its owners can grant), so the product was created with Sparkle temporarily removed from `project.yml`. The `Submit iOS` GitHub workflow (`.github/workflows/ios-submit.yml` → `tools/asc-submit.py`, secrets `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY`) runs on the same tag: it waits for that version's build to finish processing, then submits it for App Review, released automatically after approval. The latest version wins: a version still *Waiting for Review* is pulled back, renamed and resubmitted with the new build; one already *In Review* or approved is left alone (rerun the workflow with the version once it is out). Empty *What's New* fields get a generic "Bug fixes and improvements" text; write real notes in App Store Connect before the tag when a release deserves them. `DRY_RUN=1 tools/asc-submit.py <version>` prints the writes without making them.
diff --git a/tools/asc-submit.py b/tools/asc-submit.py
index 221358a3..9408c7b1 100755
--- a/tools/asc-submit.py
+++ b/tools/asc-submit.py
@@ -2,7 +2,8 @@
"""Submit the iOS build of a version for App Review once Xcode Cloud has uploaded it.
Usage: asc-submit.py 2.3.0
-Env: ASC_KEY_ID, ASC_ISSUER_ID, ASC_PRIVATE_KEY (.p8 contents); DRY_RUN=1 prints writes instead.
+Env: ASC_KEY_ID, ASC_ISSUER_ID, ASC_PRIVATE_KEY (.p8 contents); DRY_RUN=1 prints writes instead;
+SINCE (ISO 8601) ignores builds uploaded before it, so a tag run never submits an older build.
Latest version wins: a version still waiting for review is pulled back, renamed and
resubmitted with the new build. A version already in review is left alone.
@@ -58,9 +59,11 @@ def wait_for(what, check, minutes):
def main(version):
- build = wait_for(f"build {version} to finish processing", lambda: next(iter(call(
- "GET", f"/builds?filter[app]={APP_ID}&filter[preReleaseVersion.version]={version}"
- "&filter[processingState]=VALID&sort=-uploadedDate&limit=1")["data"]), None), 150)
+ since = os.environ.get("SINCE", "")
+ build = wait_for(f"build {version} to finish processing", lambda: next(iter(
+ b for b in call("GET", f"/builds?filter[app]={APP_ID}&filter[preReleaseVersion.version]={version}"
+ "&filter[processingState]=VALID&sort=-uploadedDate&limit=1")["data"]
+ if b["attributes"]["uploadedDate"] >= since), None), 150)
print(f"build {build['attributes']['version']} ({build['id']})")
def in_flight():