Repository navigation
Conversation
…compatibility The Screenshot plugin now weak-links ScreenCaptureKit. The existing availability check calls a macOS 26-only helper for rectangle capture, while earlier systems use the existing display capture path. A regression test checks the generated linker flags for ScreenshotPluginCore, ScreenshotPlugin, and MacToolsTests. Fixes mactools-app#557
Collaborator
|
Thanks for the compatibility fix! The weak-linking change and availability guard look good, and all 11 generator tests pass. One small item before merging: please add a short English changelog fragment under I couldn't verify plugin loading and capture on macOS 14/15 locally, so a quick check on those versions would also be helpful. Thanks! |
This branch has not been deployed
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 and result
MacTools cannot load the Screenshot plugin on macOS 14 or 15, so users cannot take screenshots with it. The plugin linked ScreenCaptureKit strongly, making SCScreenshotConfiguration a required symbol even though only the macOS 26 capture path uses it. On macOS 14 and 15, dyld fails to resolve that class before the runtime availability check can select the older capture path.
The Screenshot plugin now weak-links ScreenCaptureKit. The existing availability check calls a macOS 26-only helper for rectangle capture, while earlier systems use the existing display capture path. A regression test checks the generated linker flags for ScreenshotPluginCore, ScreenshotPlugin, and MacToolsTests.
Closes #557
Changes
Covered in the summary above.
Verification
pytest -q scripts/tests/test_generate_plugin_schemes.py passed all 11 tests, including the new linker flag check.
swift_tests found no Swift package for the changed files and ran no Swift tests.
The tests in
scripts/tests/test_generate_plugin_schemes.pyfail without the fix in the MacTools CapturePipeline change (checked by reverting the source changes).UI evidence
Not applicable to this change.
Checklist
AI was used for assistance.