In my MacOS app there is a login item that uses -[NSWorkspace launchApplicationAtURL:options:configuration:error:] method to launch the main app. It works fine
-[NSWorkspace launchApplicationAtURL:options:configuration:error:]