Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Gatekeeper quarantine issue with certificate

Our Although our app is code signed . Our Apple and apple certificate is up to date. Previous versions of our app have run just fine.However, when the DMG is downloaded by the users, on some Macs the application is quarantined, but for the majority of users, it's not. So some users can open the app and others get the "X.app can’t be opened because the identity of the developer can not be confirmed.", we sometimes run into issues as shown below .

...

Explanation

When you download a file with a browser, the browser will attach a com.apple.quarantine attribute to it, indicating that it came from an untrusted network source. Other types of internet apps (email, chat, etc) should also attach this attribute to downloaded files.

...

In this case, when you download the .dmg file, it gets marked as quarantined; when you open it, the attribute gets propagated to its contents, so the app is also marked as being in quarantine.

The solution

There are two types of solution to fix this issue.

Solution 1(Preffered) :

  1. Unmount the dmg file

  2. open the terminal and execute the following command

xattr -d com.apple.quarantine </path/to/file>

...

  1. now remount the dmg file and you should not see the warning any more and the wizard should pop up as shown below

...

Image Added

Solution 2 :

  1. Mount the dmg file and open it you should get the error screen as below. click ok

...

  1. Go to system Settings serach for security and you should see your application was blocked from use … click on Open Anyway

...

  1. Now it amy ask for a password, enter it and click on Unblock

...

  1. Now the next screen would appear. click on open

...

  1. Now the installation wizard should appear

...

Image Added