Thanks for replying back...
===================
What happens if you use a Developer ID certificate?
=============== As per apple developer portal on appstore we need to use specific certificates (below) depending on whether this app is distributed outside appstore or not. See below, I quoted from apple store connect.
This app shall be distributed via appstore (not outside) of apple channel -- As such we chose and created certs
starting with the word "Mac" below (certs categories).
Wow, this made me thinking, wouldn't it be that, until the app is in the appstore officially, the gatekeeper thinks this is
outside app? Meaning, until we install it via appstore, the gatekeeper would think this is coming from external --Internet, or via USB.
Am I thinking correctly?
If the above is true, then, when we test for spctl on the app bundle which is now at pre-publish stage (not yet in appstore, but going thru review), it always requires "Developer ID Application" based signing-->
This certificate (Developer ID Application) is used to code sign your app for distribution outside of the Mac App Store.
But we used Mac Dev cert for signing the code as it is intended for distribution via appstore.
Does this make sense? If this is case, I will bring appstore review team to make a note of this thread.
Thanks in anticipation.
========Description of various certs and sign purpose from Appstore Connect ==========
Developer ID Application
This certificate is used to code sign your app for distribution outside of the Mac App Store.
Developer ID Installer
This certificate is used to sign your app's Installer Package for distribution outside of the Mac App Store.
Mac Development
Sign development versions of your Mac app.
Mac App Distribution
This certificate is used to code sign your app and configure a Distribution Provisioning Profile for submission to the Mac App Store.
Mac Installer Distribution
This certificate is used to sign your app's Installer Package for submission to the Mac App Store
===========