Check whether OS is supported error in Uppaal 4.1.23 on Mac OS Catalina 10.15

房东的猫 提交于 2019-12-13 18:19:44

问题


I installed Uppaal 4.1.23 on Mac OS 10.15 but I get an error. What do I do?


回答1:


MacOS 10.15 Catalina seems to enforce binary notarization, i.e. the binaries must be signed by a certified developer in order to be able to run. Uppaal binaries are not signed, thus Catalina issues an error:

Clicking "Cancel" will abort the execution and Uppaal will display a popup "Server exited with error 137".

Clicking "Move to Bin" will delete the server binary and thus destroy the distribution. Any subsequent run or simulator reload will issue "Server exited with error 126". I suspect that this is what happened.

Getting a developer certificate will take some time.

A workaround is to open System Preferences/Security & Privacy/General:

  1. Find a line "server.bin was blocked from use because it is not from an identified developer", click "Allow Anyway".

  2. In Uppaal click View/Reload Simulator.

  3. Catalina will probably make another popup for each library and each library will have to be allowed in the System Preferences/Security & Privacy. This is a bit tedious, because there are 6 binaries and libraries in total, but this is the most secure for now and has to be done once per installation (I would suggest making a copy of the image content, because remounting the image will require the same permission granting again).

Alternatively one may disable the signature checking once and for all by running the following command at the terminal (it will ask for user password):

sudo spctl --master-disable

Then System Preferences/Security & Privacy/General will look as follows and it will not ask for permissions anymore:

This setting is not secure if the user starts running arbitrary program from internet.

Once Uppaal is running normally (check at least that the simulator works with a demo/train-gate.xml example), the setting can be rolled back to re-enable the protection with the following command at the terminal:

sudo spctl --master-enable

The previously used Uppaal installation should continue running without asking.



来源:https://stackoverflow.com/questions/58780213/check-whether-os-is-supported-error-in-uppaal-4-1-23-on-mac-os-catalina-10-15

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!