MacOS: R2017a keeps asking "Allow incoming connections"

1 回表示 (過去 30 日間)
Noah Kanovsky
Noah Kanovsky 2017 年 3 月 26 日
編集済み: Noah Kanovsky 2017 年 8 月 25 日
Running MacOS 10.12.3 On each invocation of Matlab R2017a, MacOS asks "Allow incoming connections, Allow / Deny". The answer doesn't get remembered for the next time I open Matlab. I have Matlab 2016a and 2017a installed side-by-side. The issue doesn't occur on MATLAB_R2016a, only on MATLAB_R2017a. I have worked around this by adding manually the file "/Applications/MATLAB_R2017a.app/Contents/MacOS/MATLAB" to the Firewall allowed list. I had to do this manually, as it wouldn't remember the setting from the prompt.
  7 件のコメント
Walter Roberson
Walter Roberson 2017 年 5 月 11 日
I did not observe this with the R2017a official running on a Sierra virtual machine.
Ian
Ian 2017 年 8 月 11 日
編集済み: Ian 2017 年 8 月 11 日
Problem persists for R2017a in MacOS Sierra 10.12.6, when opening via clicking on app icon or icon in dock. Adding Matlab (either the main /Applications entry or the actual executable mentioned by Kanovsky) did not solve the problem.
Matlab also does not remember previous screen position, and opens all windows, including figures on the wrong (for me) screen. It appears to always open on the screen where the dock is positioned (which for me is on the side of my smaller screen), regardless of where the window was positioned previously. Moving dock back to my main window fixes the problem, but I keep the dock on the side of the secondary window so I have more screen real estate for working.
Workaround in J Robin's link (see below) of opening matlab from the shell script (/Applications/Matlab.../bin/matlab) via command line seems to fix both problems for me.

サインインしてコメントする。

採用された回答

Jyotish Robin
Jyotish Robin 2017 年 3 月 31 日
Hi Noah!
Take a look at the below MATLAB answers post:
I hope this will help you solve the issue.
Regards,
Jyotish

その他の回答 (1 件)

Noah Kanovsky
Noah Kanovsky 2017 年 3 月 31 日
編集済み: Noah Kanovsky 2017 年 8 月 25 日
Updated with working solution: Take /Applications/MATLAB_R2016a.app/Contents/MacOS/StartMATLAB and copy it to /Applications/MATLAB_R2017a.app/Contents/MacOS/MATLAB.
Old answer (doesn't work): Add "/Applications/MATLAB_R2017a.app/Contents/MacOS/MATLAB" to the Firewall allowed list.
  3 件のコメント
Irl Smith
Irl Smith 2017 年 7 月 14 日
編集済み: Irl Smith 2017 年 7 月 14 日
If this works, it implies that the startup code was changed (and the bug introduced) between 2016 and 2017. FWIW, there is no StartMATLAB in R2017a at the location listed, so that code seems to have been moved somewhere else. Mathworks, please fix! (I can't test it because I didn't retain my R2016 when I updated to R2017a.)
Noah Kanovsky
Noah Kanovsky 2017 年 8 月 15 日
That's true, it's now called MATLAB not StartMATLAB.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by