title: Cannot set icon file in pyinstaller
body: <p>I am trying to build a mac .app file using Python and pyinstaller. When I use the command:</p>
  <pre><code>pyinstaller --onefile --windowed --icon=&quot;Path_of_file.ico&quot; app.py
  </code></pre>
  <p>The application works well but the icons do not appear.</p>
  <p>I am currently using pyinstaller 5.1. Using the same command in pyinstaller 4.9, the icon does appear, but other aspects of the app (matplotlib graph display) do not work. It appears that other people had this problem using 5.0.1 (<a href="https://github.com/pyinstaller/pyinstaller/issues/6788" rel="nofollow noreferrer">https://github.com/pyinstaller/pyinstaller/issues/6788</a>) and that 5.1 was created to address the issue, but it is still not working for me.</p>