SMJobRemove deprecated

I am creating a application that needs to do some processing as a priviledge user. I have created a helper app that does this processing and I have gotten everything to work except when I am updating the code in the helper tool I have to install the tool again. I get an error since the helper tool is already installed. I was going to use the SMJobRemove so that I could reinstall the helper tool with SMJobBless. This app will be installed and running on 10.10.x and up. The problem is that SMJobRemove has been deprecated in 10.10. So what is the replacement and how am I supposed to manage the install and removal of the helper tools that I am going to use? If SMJobRemove is deprecated, is SMJobBless next in line to be deprecated. Is there a better way of, more secure way of, doing this type of processing?

I have created a helper app that does this processing and I have gotten everything to work except when I am updating the code in the helper tool I have to install the tool again.

Last I checked,

SMJobBless
supports upgrading the tool from one version to the next. ISTR a caveat in there somewhere—I think that it requires authentication again, even though it shouldn't in that case—but the basic process should work.

So, does your newer tool have a newer version?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I went back and tested some more and it looks like for right now it errors out when I archive it to distribute it. I test it there and it errors out until I uninstall the helper app and then it will reinstall it correctly. As long as that is the only time it has this issue I can live with that. Is there a standard way of checking if the help tool is needing an update? Having the message everytime that it is installing the helper app is a bit repetition when all I am doing it check if it needs to be updated.

Is there a standard way of checking if the help tool is needing an update?

What I do is send my helper tool a message asking for its version number. If the request fails, you know the tools not installed; if it works, you et back the version and can move on from there.

EvenBetterAuthorizationSample shows the basics of this.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
SMJobRemove deprecated
 
 
Q