Done in https://github.com/badbundle/vault-app/pull/713 (merged as 4523c835). make validate now builds and runs every shared module's tests on the Mac as well as iOS: 2,790 tests on the Mac, after the iOS steps, in the same "Validate (local)" check.
- ImageTools and VaultExport build for macOS too, since VaultBackup and VaultFeed depend on them. They use platform aliases (
PlatformImage,PlatformFont,PlatformColor,PlatformEdgeInsets), which are the same UIKit types on iOS. Until VAULT-104, making a PDF on the Mac throws, and the tests that draw PDFs are iOS-only. - No test is iOS-only by nature: even the keychain tests pass on the Mac.
- Found on the way: a Mac with Apple silicon won't write a file with complete protection while its screen is locked, as an iPhone won't. Validation often runs with the screen locked, so the macOS test plan has debug builds write the vault's files with
completeUntilFirstUserAuthentication(VAULT_TEST_FILE_PROTECTION). Release builds ignore it.docs/mac-app.mdrecords what it means for the app: the Mac's vault file can't be read or written while the screen is locked, as on iOS.