Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Say that a Release build also needs macOS 26 on the command line

Țugui Dragoș82e6a73ad445
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index e6c7b288..60855ed6 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -265,6 +265,9 @@ which any of the four programs can be debugged or lacks the arm64e slice, in whi
A Release build of every program has pointer authentication (`ENABLE_POINTER_AUTHENTICATION`, an arm64e slice
beside arm64 and x86_64), and the helper the rest of Enhanced Security too. Xcode gives the Swift packages only the
-settings of the command line, so a Release build passes that setting there as well: `release.sh` and the Checks
-workflow do, and Xcode's own Archive, which cannot, fails. A Debug build leaves it off, since it builds only the
-Mac's own architecture, which the programs would read as arm64e and the packages as arm64.
+settings of the command line, so a Release build passes that setting there as well, with
+`MACOSX_DEPLOYMENT_TARGET=26.0`: a package that names no platform, such as swift-argument-parser, would otherwise
+be built for an older macOS with its class data unsigned, and the linker would then leave the class data of the
+whole `peel` tool unsigned. `release.sh` and the Checks workflow pass both, and Xcode's own Archive, which cannot,
+fails. A Debug build leaves pointer authentication off, since it builds only the Mac's own architecture, which the
+programs would read as arm64e and the packages as arm64.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 65f154f4..8b1cdfae 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -35,9 +35,10 @@ to Terminal.
team named in `Support/com.tuguidragos.Peel.Helper.plist` (`SpawnConstraint`), so to install the helper you
build, put your team there as well, again outside your commits. The package's tests need no signing.
- Nothing else. The only dependency is Apple's swift-argument-parser, which Xcode fetches.
-- A Release build needs `ENABLE_POINTER_AUTHENTICATION=YES` on the `xcodebuild` command line, since only the
- command line reaches the Swift packages and every program imports them for arm64e too. `Scripts/release.sh`
- passes it; a Debug build needs nothing.
+- A Release build needs `ENABLE_POINTER_AUTHENTICATION=YES` and `MACOSX_DEPLOYMENT_TARGET=26.0` on the
+ `xcodebuild` command line, since only the command line reaches the Swift packages: every program imports
+ them for arm64e too, and a package that names no platform would be built for an older macOS, with its class
+ data unsigned. `Scripts/release.sh` passes both; a Debug build needs nothing.
```bash
xcodebuild -project Peel.xcodeproj -scheme Peel -configuration Debug -derivedDataPath build/DerivedData DEVELOPMENT_TEAM=YOUR_TEAM_ID build