Hi, I've code-signed my app and notarized it, and created a DMG, and when I slacked it or airdropped it to someone for testing the FIRST time they open it, they get a warning that it was Slacked or airdropped to them and do they want to open it. if they say yes everything is fine. So looking through here someone said I need to sign the app and then make a dmg and sign the dmg and then send that for notorization and then staple that. So I did, and I still get a warning the first tie someone try's to run it.
What am I doing wrong? I know I can buy software and not get a warning from apple. so how do I get my app to work correctly like that?
OK, cool. That means that you’ve correctly signed and notarised your app.
Yep. That’s how Gatekeeper works. If the user gets your app via a user-level mechanism — Safari, AirDrop, whatever — then the app is quarantined and Gatekeeper always requires user approval the first time it’s launched.
If the app were incorrectly signed, Gatekeeper would block it from launching completely.
For more about this mechanism, see the Safely open apps on your Mac article on the customer support site.
Buy from where?
Apps that you get from the App Store are checked by Gatekeeper but it doesn’t present a user approval alert in that case. The confirmation done by App Store itself is sufficient.
If you got the app from a third-party app distributor — for example, games vendors often have their own way to download and install their games — then the behaviour will vary based on how they set things up.
ps I described my standard way of testing for Gatekeeper compatibility in Testing a Notarised Product.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"