Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asking a user for elevated privileges and elevating the application without an Apple developer certificate

Tags:

People also ask

How do I get Apple certificate developer?

Navigate to the Member Center on the Apple Developer website and log in with your Apple developer account. If you do not have an Apple developer account, you will need to create one. In the Member Center, click to select the Certificates, Identifiers & Profiles section, then select Certificates under iOS Apps.

What is an Apple Developer certificate?

The Apple Worldwide Developer Relations Certificate Authority issues certificates used by developers for signing third-party apps and Safari Extensions, and for using Apple Wallet and Apple Push Notification services.


Apparently, as of 10.7, AuthorizationExecuteWithPrivileges is deprecated. The general gist of the information I've gathered on this seems to suggest using ServiceManagement.framework's SMJobBless() function to have a helper application deployed.

My understanding of it though, is that this will need a developer certificate to be purchased from Apple to code sign both my application and the helper process - or this will not work. Is this correct?

I originally used AuthorizationExecuteWithPrivileges to ask a user for elevated privileges, since they are needed to access another running process. Without that, my app can't work as the unofficial plugin it's intended to. Is the code signing way really the only way to go from here? I'm trying to avoid purchasing a developer certificate due to the sheer cost of it.

Has anyone found any alternative ways to relaunch an application with elevated privileges, with user permission of course?