SynCal: fix-ready issue
Status: UNHEALTHY. The App Store submission (v1.0.0) is REJECTED / UNRESOLVED_ISSUES under Guideline 4.8, and the only build attached to it (build 4) has expired. The code fixes are already on main (builds 11-13), but no build was published after that: every run stops at held_for_review, and the 2026-08-20 export was killed with SIGTERM. Auto-heal was not done (fixable=false) because the remaining steps are an unfinished code change in the working tree, a human publish approval, and an ASC resubmit/reply. The fleet does not do any of these on its own.
_Filed 2026-09-24 by fleet workflow. Verify verdict: isRealFix=false (no fix attempted)._
Root cause and evidence
1. The App Review rejection is still open (Guideline 4.8, Login Services)
From state/asc-review.json → SynCal.message.latest (Apple, 2026-06-15, reviewed 1.0.0 (4)):
> "Guideline 4.8 - Design - Login Services ... The app uses a third-party login service, but does not appear to offer as an equivalent login option another login service ... Note that Sign in with Apple is a login service that meets all the requirements specified in guideline 4.8."
The earlier rejection (2026-06-02, 1.0.0 (1)) was Guideline 2.1(a), "We are unable to successfully access all or part of the app". It needed a demo account or demo mode. Commit 876068e addressed it by adding Demo Mode (SynCal/Services/DemoStore.swift).
2. The submission is stuck on an expired build
From state/asc-review.json → SynCal.checks:
> {"severity": "error", "message": "build is expired", "remediation": "Select a non-expired build for this version in App Store Connect"}
> {"severity": "error", "message": "Latest review submission has unresolved issues in App Review", ...}
3. Builds with the fix were never uploaded to ASC
ca74837 fix(SynCal): offer Sign in with Apple equivalently to Google (Guideline 4.8)and00aaf46 docs(SynCal): commit App Review notes explaining Guideline 4.8 remediationare committed.state/fleet.json→SynCal:last_build_number: 13,last_upload_status: "held_for_review",pending_review_build: 13,pending_review_since: 2026-08-16T20:53:52Z. ASC still showslatest_build_number: "4".state/runs/SynCal-2026-08-16T20-52-17Z.log:
> [04:53:52] BUILD READY — held for your review (build 12) ... to publish to ASC after review: fleet publish SynCal
state/runs/SynCal-2026-08-20T20-54-58Z.log(the build-13 run was killed during export):
> make: *** [export] Terminated: 15
Commit 0f9ce97 recorded the leftover version bump to 13. An IPA for 13 exists at apps/SynCal/build/export/SynCal.ipa (dated Aug 23 04:48).
4. An unfinished change in the working tree (not committed or built)
apps/SynCal has uncommitted edits to SynCal/Services/AppleSignInService.swift, SynCal/SynCalApp.swift and SynCal/Views/LoginView.swift. They replace the @AppStorage("hasCompletedLogin") shadow flag with the real auth state (appleSignInService.isSignedIn || googleCalendarService.isSignedIn) and make handle(_:) return Bool and expose lastError. Without this, a cancelled Sign in with Apple could still let the user past login, so the reviewer could see Apple sign-in as broken or non-equivalent. The held IPA for build 13 does not contain this change.
5. A stale path in the launchd error log (minor)
state/runs/launchd-syncal.err:
> fleet-build: missing /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/SynCal/.fleet/config.sh
The app now lives at apple-apps/apps/SynCal/ (the config exists at apps/SynCal/.fleet/config.sh). A launchd job still points at the old path.
Claude-ready fix prompt
> You are fixing the iOS app SynCal (bundle com.zzxwill.SynCal, ASC id 6774228993, Team 94479PZ7X4). Repo: /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SynCal. It was rejected under App Review Guideline 4.8 (third-party Google login without an equivalent privacy-preserving option) and the submission is attached to the expired build 4. Do the following in order:
>
> 1. Finish the in-progress login-gate change. Review the uncommitted diff (git -C /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SynCal diff) in:
> - SynCal/Services/AppleSignInService.swift (handle(_:) -> Bool, lastError)
> - SynCal/SynCalApp.swift (the isLoggedIn computed from appleSignInService.isSignedIn || googleCalendarService.isSignedIn, with hasCompletedLogin removed)
> - SynCal/Views/LoginView.swift
>
> Make sure that on LoginView, "Sign in with Apple" is shown first or with equal prominence next to Google. It must use SignInWithAppleButton and request only .fullName/.email scopes. A cancelled or failed Apple sign-in must show lastError and keep the user on LoginView. A successful Apple sign-in alone must let the user use the app fully (Apple Calendar reading, Demo Mode) without a Google account. Google should only be required for the "push to Google Calendar" step, and there it should be framed as connecting a destination calendar, not as the app login. Confirm that SynCal/SynCal.entitlements still has com.apple.developer.applesignin = [Default] and that AppleSignInService.swift is in the target (see 0354ed6).
> 2. Build and test. Run xcodebuild -project SynCal.xcodeproj -scheme SynCal -destination 'generic/platform=iOS Simulator' build. Then smoke-test on a simulator: fresh install → LoginView → Sign in with Apple → cancel (should stay on login and show the error) → Demo Mode (should reach the overview with sample events) → Sign Out (should return to LoginView).
> 3. Update the review notes. In fastlane/metadata/review_information/notes.txt, say explicitly: "Sign in with Apple is offered as an equivalent login option on the first screen (Guideline 4.8). Google sign-in is only used to authorize writing events to the user's Google Calendar as the sync destination. Reviewers can tap 'Try Demo Mode' to see all features without any account." Keep demo_user/demo_password empty in the Deliverfile and set demo_required false, since Demo Mode covers 2.1(a).
> 4. Commit the three Swift files and the notes, e.g. fix(SynCal): gate login on real auth state; Sign in with Apple equivalent to Google (Guideline 4.8).
> 5. Rebuild and publish. Bump CURRENT_PROJECT_VERSION to 14 in SynCal.xcodeproj/project.pbxproj. It is 13 at lines ~274 and ~320, and 13 was already used locally, so 14 avoids a collision. Run make build export from the app dir and check that build/export/SynCal.ipa is fresh. Then run fleet publish SynCal (a human must approve, because the fleet holds uploads for review).
> 6. Resubmit in App Store Connect. On version 1.0.0, replace the expired build 4 with build 14. Reply in the Resolution Center to the 2026-06-15 Guideline 4.8 message ("Sign in with Apple is now offered as an equivalent login option on the login screen in build 14; Demo Mode is available for full review access"). Then submit for review.
> 7. Fleet hygiene. Find the launchd job for SynCal that points at /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/SynCal/ and change it to /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SynCal/. grep -rl "apple-apps/SynCal" ~/Library/LaunchAgents will locate it. Also look into why the 2026-08-20 export got SIGTERM (state/runs/SynCal-2026-08-20T20-54-58Z.log); it is probably the fleet runner's timeout.
>
> Do not touch other apps. Do not upload without the human's publish approval.
Last known-good build
From state/asc.json → SynCal: build 4 (latest_build_state: "VALID", uploaded 2026-06-10T09:07:22-07:00, version 1.0.0, 3 builds on ASC). ASC Review now reports this build as expired, and it is the build that was rejected under 4.8. It cannot be reused, so a new upload (build 14 or later) is required.