Reputation: 1974
I'm a newbie at mac osx development. I would like to know if there's any way to override the mac desktop security settings to allow an application - which is not registered in the Mac App Store, to be installed?
The setting should come from the app that I'm trying to install. That means, whenever I install the app to any mac computer, regardless of its security settings as the following,
Allow applications downloaded from:
The app should set the settings to Anywhere, allowing it to be installed. Any help would be very much appreciated.
Upvotes: 32
Views: 46802
Reputation: 11
There is one other way...
All you have to do to do it manually is to open up Terminal, cd into the .app application, cd into the Contents folder, then cd into the MacOS folder, then type ./YourAppNameHere and execute by typing Enter.
Upvotes: 1
Reputation: 331
Right click the (app) icon and click 'open' in contextual menu - no need to disable the OS security.
Upvotes: 23
Reputation: 46020
You need to sign your application using a Mac Developer certificate, which you can obtain from Apple. That will mark your app as built by an "identified developer" and it will launch just fine without changing any settings.
Upvotes: 3
Reputation: 11
Control Click the app icon to override this security feature. This is a one off, you don't have to change your settings, you can do it per-app.
Upvotes: 1
Reputation: 717
Note that you should be careful and aware that now the job of protecting the system from malicious apps belongs to you instead of the OS.
Upvotes: 70
Reputation: 993055
This is not possible. The existence of that setting is intended to protect users from malicious executables. If there were a way for any arbitrary executable to override that setting, what protection would it offer? Malicious executables would simply change the setting to "Anywhere" like you suggest, bypassing the security features of Mac OS X.
Upvotes: 17