Skip to content

Cant run unsigned .app under macOS Big Sur 11.5 #1

@anders-bogild

Description

@anders-bogild

Hi @greenonline

First of all thanks for porting serialplot. Its a great application that i've used on both linux and windows. I read your blog post and appreciate all the work you put in to it!

However i can't actually run it.
When double clicking serialplot.app i just get a dialog saying:

You do not have permission to open the application “serialplot.app”. Contact your computer or network administrator for assistance.

Right clicking and choosing "open" on the .app does not work either. I believe the problem is that the app bundle is not signed. It probably works on your machine because you compiled it your self.

After some very quick googling i stumbled upon this page: https://wiki.lazarus.freepascal.org/Code_Signing_for_macOS which talks about code signing on macOS.

I briefly tried to ad-hoc sign serialplot.app with the command
codesign --force --deep -s - serialplot.app

But i get the error:
serialplot.app: bundle format unrecognized, invalid, or unsuitable
In subcomponent: /Users/anders/Downloads/serialplot.app/Contents/Frameworks/QtPrintSupport.framework

I think anybody who tries to use the app bundle will have the same problem unless they disable macOS gatekeeper.

This can be done by executing in terminal:
sudo spctl --master-disable

Afterwards i can start serialplot.app (by right clicking, choosing open) but no window becomes visible. Only option is to force-quit.

For anybody experimenting with disabling gatekeeper please remember to enable it again with the command
sudo spctl --master-enable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions