If the version number of Simulink Support Package for Arduino Hardware that you have installed is 20.2.1, then you might face this issue on macOS.
To know the version of the installed support package, execute the following command:
To resolve this issue follow the instructions given below:\n
- Download the attached files and put them in the same folder.
- Navigate to the folder created in step 1 above in MATLAB.
- Run the 'applyPatch.m' file from MATLAB command prompt.
- Restart MATLAB.