Signed app from xcode is rejected in spctl check

Hi, I built simple application in XCode (version 8.3) on OSX Sierra. Type is "Application Bundle" so output is .app. It is signed with my Signing Certificate, without provisioning profile and without any Code Signing Entitlements (all Capabilities are OFF). Everything seems to be working, "codesign" shows it as valid, but when I check builded .app with "spctl -avv MyApp.app" the output is:


MyApp.app: rejected (the code is valid but does not seem to be an app)

origin=(there is correct Developer ID Application with correct code).


Application is running without problems on my computer but on other machine with OSX Sierra it is stopped by the gatekeeper due to developer identitty.

I think I'm missing something in XCode settings. Can somebody give me an advice what I am doing wrong?

Signed app from xcode is rejected in spctl check
 
 
Q