_SMLoginItemSetEnabled: symbol(s) not found for architecture x86_64 – Sandboxing

If you plan to add your application to Login Items, and you have to use Sandbox, make sure to link with

ServiceManagement.framework