SMLoginItemSetEnabled
. With that function you can register an application bundle identifier to auto start when the user logs in, but you can not register your own app identifier. Sounds crazy, huh? ?Contents/Library/LoginItems
.ServiceManagement.framework
to your main application and double check that the launcher app is embedded into your main application.ViewController.swift
file from this target. This is a background app after all, so we don't need these stupid things to lay around.NSDistributedNotificationCenter
class.