Skip to content

fix(macos): run on macOS 13 and stop shipping un-notarized builds - #71

Merged
Hiwoniu merged 2 commits into
mainfrom
fix/macos13-gatekeeper
Nov 22, 2026
Merged

Hiwoniu merged 2 commits into
mainfrom
fix/macos13-gatekeeper

Conversation

@Hiwoniu

@Hiwoniu Hiwoniu commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

Two install failures reported by users of the 0.1.15 DMG (微信流-0.1.15-b23-universal.dmg):

  1. 🚫 on the app icon, can't drag it to Applications on a 2017 Intel MacBook Pro running Ventura 13.7.8. The binary is universal, but LSMinimumSystemVersion was 14.0.
  2. "微信流 Not Opened — Apple could not verify…". The app was signed with the self-made WeChatBridge Dev identity (no Team ID) and was never notarized, so Gatekeeper rejects it.

Changes

macOS 13 support

  • The deployment target is now macOS 13.0 in Package.swift, Info.plist and Share-Info.plist.
  • New Design/Compat.swift wraps the five macOS 14-only SwiftUI APIs the app used (onChange(of:initial:), onKeyPress, focusEffectDisabled, scrollBounceBehavior, defaultScrollAnchor). It uses the real API on 14+ and falls back on 13. All 56 call sites now go through it.
  • What's lost on 13: Return/Space don't pick an item in the custom dropdown lists (arrows go through onMoveCommand, and the mouse still works), and the system focus ring is visible.

Signing / notarization

  • release.sh now requires TEAM_ID and only signs with that team's Developer ID Application identity, instead of the first one in the keychain.
  • make-app.sh applies the same team filter when TEAM_ID is set.
  • New Scripts/verify-gatekeeper.sh <dmg> checks notarization, stapled tickets, signature, minimum macOS and architectures. release.sh runs it at the end, and it can be run by hand before uploading to 蓝奏云.

Docs

  • "macOS 14+" is now "13+" in the READMEs and PRODUCT_CAPABILITIES.
  • The usage guide FAQ (zh/en) has new entries for the 🚫 icon and for opening builds that are already out (Privacy & Security → Open Anyway, or xattr as a fallback).

Verification

  • swift build -c release passes for both x86_64 and arm64 (app and share extension).
  • A universal make-app.sh bundle shows minos 13.0 for the app and all 12 appex binaries.
  • swift test runs 186 tests with 0 failures and 1 skipped.
  • check-release-config.sh passes.
  • verify-gatekeeper.sh on the shipped b23 DMG flags both reported problems.

Not verified / follow-up

  • Not run on a real macOS 13 machine yet.
  • A notarized DMG needs a Developer ID Application certificate for the release team and a WeChatBridge-Notary notarytool profile. Neither exists on the build machine yet.

🤖 Generated with Claude Code

xiangmingAI and others added 2 commits November 22, 2026 12:27
Ventura users saw a 🚫 on the app in the DMG because the deployment
target was macOS 14. Lower it to 13.0 and route the five macOS 14-only
SwiftUI APIs through Compat.swift, which falls back on 13.

Gatekeeper blocked the 0.1.15 DMG because it was signed with the
self-made "WeChatBridge Dev" identity and never notarized. release.sh
now requires TEAM_ID and signs only with that team's Developer ID, and
the new verify-gatekeeper.sh checks a DMG before it is published. The
usage guides explain how to open builds that are already out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	macos/Sources/WeChatBridgeApp/Onboarding/OnboardingFlow.swift
@Hiwoniu
Hiwoniu merged commit 654837a into main Nov 22, 2026
2 checks passed
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.

2 participants