Mac OS X: start on launch while in app store?

前端 未结 4 1502
不知归路
不知归路 2020-12-23 23:51

I need to start my app at system launch, but the problem is: it is already in App Store, so I must follow some rules like using sandboxing. This leads to fail of desired fun

4条回答
  •  孤独总比滥情好
    2020-12-24 00:35

    The setup for getting your sandboxed app to launch at login is time-consuming and it's too easy to get a step wrong. That's why I made a Swift package to automate it. With my LaunchAtLogin package, all you have to do is add a build step in Xcode and then write two lines of code:

    import LaunchAtLogin
    
    LaunchAtLogin.isEnabled = true
    

提交回复
热议问题