How FileVault encryption failed, apparently damaging an SSD with less than 250 hours use. And what I did to fix it.
macOS
You suddenly can’t remember your password, or your Mac won’t accept what you think is your password. What do you do next?
Calling shell commands, including with privileges, NSBackgroundActivity, XPC Activity, and writing shell commands in Swift.
Dates with (NS)Date and DateFormatter, writing messages to Sierra’s unified log, and working with old Objective-C interfaces.
Reading and writing preference files, storing data in property list files, and reading JSON data.
Alerts, open and save file, text boxes, radio buttons, popup menus, steppers, read and write in NSDocuments, and much more.
Swift 3.1 code snippets for string manipulation, working with attributes in attributed text, and with arrays.
Covers new series of Swift Snippets articles, with links to those articles, other relevant ones here, and the whole series in a Tinderbox document.
How to encrypt your hard disk without tears, using macOS FileVault. Includes addressing problems.
Several bugs and issues in the log command will not result in errors, but will misleadingly return no log entries when used in search predicates.
