Repository navigation
fix(macos): run on macOS 13 and stop shipping un-notarized builds - #71
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Two install failures reported by users of the 0.1.15 DMG (
微信流-0.1.15-b23-universal.dmg):LSMinimumSystemVersionwas14.0.WeChatBridge Devidentity (no Team ID) and was never notarized, so Gatekeeper rejects it.Changes
macOS 13 support
Package.swift,Info.plistandShare-Info.plist.Design/Compat.swiftwraps 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.onMoveCommand, and the mouse still works), and the system focus ring is visible.Signing / notarization
release.shnow requiresTEAM_IDand only signs with that team's Developer ID Application identity, instead of the first one in the keychain.make-app.shapplies the same team filter whenTEAM_IDis set.Scripts/verify-gatekeeper.sh <dmg>checks notarization, stapled tickets, signature, minimum macOS and architectures.release.shruns it at the end, and it can be run by hand before uploading to 蓝奏云.Docs
xattras a fallback).Verification
swift build -c releasepasses for bothx86_64andarm64(app and share extension).make-app.shbundle showsminos 13.0for the app and all 12 appex binaries.swift testruns 186 tests with 0 failures and 1 skipped.check-release-config.shpasses.verify-gatekeeper.shon the shipped b23 DMG flags both reported problems.Not verified / follow-up
WeChatBridge-Notarynotarytool profile. Neither exists on the build machine yet.🤖 Generated with Claude Code