32

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:

  • Mac App Store
  • Mac App Store and identified developers
  • Anywhere

The app should set the settings to Anywhere, allowing it to be installed. Any help would be very much appreciated.

JGallardo
  • 11,074
  • 10
  • 82
  • 96
Kimpoy
  • 1,974
  • 3
  • 21
  • 38
  • 1
    This sound very malicious. There is no real value add to what you are intending to do and makes me question your intentions. – JGallardo Nov 19 '15 at 19:43

6 Answers6

71
  1. Launch System Preferences from the Apple menu.
  2. Choose “Security & Privacy” and then click the “General” tab, followed by clicking the lock icon in the corner to unlock the settings.
  3. Look for “Allow applications downloaded from:” and choose “Anywhere”.
  4. Accept the security warning and allow.

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.

CodeCurmudgeon
  • 727
  • 1
  • 4
  • 3
  • 5
    Wrong. The question is clearly asking for something that the app can do, not something that the user can do. – JWWalker Sep 07 '12 at 22:03
  • 1
    I agree with @JWWalker...I'm not asking how to make restrictions on app installation. CodeCurmudgeon..please take a little time to read the whole thing first. I appreciate your effort though... – Kimpoy Sep 07 '12 at 23:01
23

Right click the (app) icon and click 'open' in contextual menu - no need to disable the OS security.

Rick L
  • 331
  • 2
  • 3
16

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.

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
3

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.

Rob Keniger
  • 45,830
  • 6
  • 101
  • 134
1

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.

1

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.