How to use application will terminate in macOS
Issue #601
On Xcode 11, applicationWillTerminate
is not called because of default automatic termination on in Info.plist. Removing NSSupportsSuddenTermination
to trigger will terminate notification
1 | func applicationWillTerminate(_ notification: Notification) { |
1 | <key>NSSupportsAutomaticTermination</key> |