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.
- Check out RSAppMovementMonitor on GitHub.
- The long defunct LetsMove used to be a tool that tried to prevent the issue by offering to move the app to
/Applicationsupon launch from any other directory.
Receive new posts via email.