Can not open a bundle signed for mac app distribution

I'm experiencing a strange issue. When I signed my bundle with a "Mac App Distribution" certificate, I can’t launch my app (foo.app) neither my foo.pkg in local. Is it an expected behavior or I'm missing something?

Signature seems correct, if I execute codesign --verify --deep --strict --verbose=2 foo.app, I get foo.app: valid on disk foo.app: satisfies its Designated Requirement

Is it an expected behavior … ?

It’s generally true that you can’t expect to run code signed for App Store distribution on your local device. There are some situations where this works — only Mac apps, and only if you don’t use any entitlements that must be authorised by a provisioning profile — but the purpose of distribution-signed code is for you to upload it to the App Store which checks its code signature and then re-signs it for review and final distribution.

So, you shouldn’t create a workflow that relies on this.

Historically this was a real problem for Mac developers because there was no good way to test an app before releasing it. Nowadays I recommend TestFlight for that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

My app (a Mac app) is currently "In Review", but I tested my app via TestFlight, and it does not open, so I'm not very optimistic

I tested my app via TestFlight, and it does not open, so I'm not very optimistic

Just to be clear, the TestFlight release of your app is not launching?

If so, that’s something I can help you debug. Moreover, it’s important to debug this because it’s very likely that your final App Store release will behave exactly like your TestFlight release (if it doesn’t, that’s a bug on Apple’s part).

When you try to launch your TestFlight release from the Finder, what happens? Does it start at all? Does it display a “you do not have permission to open” alert? Or a “quit unexpectedly” alert? Or does it hang on launch, bouncing forever in the Dock? Or start launching but then simple quit with no alerts?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can not open a bundle signed for mac app distribution
 
 
Q