Address issue #302: "Move To" fails on macOS Sequoia with ViewBridge error 14#303
Merged
Conversation
On macOS Sequoia 15.x, NSSavePanel requires explicit file system entitlements when Hardened Runtime is enabled. Without them, the "Move To", "Save As", and export dialogs fail with ViewBridge error 14. Changes: - Create MacDown.entitlements with files.user-selected.read-write (for NSSavePanel/NSOpenPanel) and automation.apple-events (for AppleScript support already enabled in Info.plist) - Wire entitlements into both Debug and Release build configs in the Xcode project via CODE_SIGN_ENTITLEMENTS - Add explicit entitlements parameter to signed CI builds Related to #302
Update the Hardened Runtime section to document the actual entitlements file and its contents, replacing the previous guidance that said no entitlements were needed. Related to #302
Contributor
Code Coverage ReportCurrent Coverage: 53.95% Coverage Details (Summary) |
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.
Summary
MacDown/MacDown.entitlementswithcom.apple.security.files.user-selected.read-write(for NSSavePanel/NSOpenPanel file access) andcom.apple.security.automation.apple-events(for AppleScript support)CODE_SIGN_ENTITLEMENTSfor both Debug and Release configurations.github/actions/build-macdown/action.ymlplans/release-process.mdto document the entitlements (previously stated none were needed)Related Issue
Related to #302
Manual Testing Plan
Prerequisites: macOS Sequoia 15.x, locally built MacDown 3000 from this branch
Primary test (reproduces the original bug):
.mdfile in MacDown 3000Additional NSSavePanel dialogs to verify:
.htmlextension.pdfextensionAppleScript test:
tell application "MacDown 3000" to activateEdge cases:
Regression: