Detect When Your macOS App Has Been Moved During Runtime

Daniel Jalkut of MarsEdit fame released a little Swift helper to detect when a macOS app has been moved during runtime. His write-up explains everything. In short, moving an .app bundle while the app is running will inevitable result in resources not being found, and occasional also in crashes.

This or a similar helper is a practical necessity in all applications that are distributed outside the Mac App Store.

Browse the blog archive