- Swift 4.0
- Cocoapods
pod "ASLauncherMac"
- Carthage
github "antscript/ASLauncherMac"
$ carthage update
add a target with Application / Cocoa
add "-Launcher" for Launcher Target Bundle ID
add background only for YES
set skip install to YES
add copy files
drag ASLauncherMac.framework into project
embed framework for both of 2 target
// debug options
// return result with notification
ASLauncherMac.debug = true // default is false
// in main app , you can
ASLauncherMac.enableLaunchAtLogin()
// or
ASLauncherMac.disableLaunchAtLogin()
// launch main app from launcher :
// add to Launcher -> AppDelegate -> applicationDidFinishLaunching
func applicationDidFinishLaunching(_ aNotification: Notification) {
ASLauncherMac.debug = true
ASLauncherMac.launch(bundleID: "your-main-app-bundle-id", AppName: "your-app-display-name")
}
============= LICENSE