Kimpoy
Kimpoy

Reputation: 1974

Creating feature in mac app to override the users security setting

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

Answers (6)

Superwhisker
Superwhisker

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

Rick L
Rick L

Reputation: 331

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

Upvotes: 23

Rob Keniger
Rob Keniger

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

user1988963
user1988963

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

CodeCurmudgeon
CodeCurmudgeon

Reputation: 717

  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.

Upvotes: 70

Greg Hewgill
Greg Hewgill

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

Related Questions