Codesignature not working when app is zipped

I have had an ongoing problem with codesigning my applications. When a user downlaods one of my .apps that is codesigned correctly it still doesnt recognize it. I have tried everything and I cannot server my files without zipping them because they are large. I have read from many posts that this is a bug with Apple Gatekeeper. Is there a way to codesign my apps and have them successfuly zipped while still preserving its attributes. When users click to run my app it will say it is "damage". The only options are to have my users disable their Gatekeeper via: "sudo spctl --master-disable" or have them run "xattr -cr "MYAPP.app"". This is ridiculous to have users pull up their terminal to get an application to run. Does anyone have a solution for this, I have been looking forever and finally found that zipping my codesigned app is the issue. I have seen plenty of people who have had the same problem but everything that is suggested never seems to work.

Have you considered .xip instead of .zip?

Hello Eseyee,

I am unaware of any issue with codesigned apps inside zip files. Have you tried to install your app on a fresh system or VM? Running Xcode and developing pretty much destroys the "first install" experience that your users will get. I strongly suspect your app is just corrupt and you haven't noticed it.


And for the record, neither of those procedures are the correct way to bypass Gatekeeper for a single app. Instead, right-click or control-click on the app and choose "open".

Codesignature not working when app is zipped
 
 
Q