title: How to fix cx_freeze macos application error (python3)
body: <p>I'm making a game for my friend and I am using cx_freeze to turn it into a standalone application to run. I run the setup.py script in the game directory using:</p>
  <pre><code>python3 setup.py bdist_dmg
  </code></pre>
  <p>or:</p>
  <pre><code>python3 setup.py bdist_mac
  </code></pre>
  <p>and it creates a folder with the application, however when I run the application I get an error that mac couldn't run it..</p>
  <p>Here's my setup.py script:</p>
  <pre><code>import sys
  from cx_Freeze import setup, Executable
  
  # Dependencies are automatically detected, but it might need fine tuning.
  build_exe_options = {&quot;packages&quot;: [&quot;os&quot;], &quot;excludes&quot;: [&quot;tkinter&quot;]}
  
  # GUI applications require a different base on Windows (the default is for a
  # console application).
  base = None
  if sys.platform == &quot;win32&quot;:
      base = &quot;Win32GUI&quot;
  
  #buildOptions = dict(include_files = [(absolute_path_to_your_file,'final_filename')]) #single file, absolute path.
  
  buildOptions = dict(include_files = ['assets/'])
  
  #tells cx_freeze to include everything in the assets folder when making the applicatino
  
  
  setup(
           name = &quot;Cookie Clicker&quot;,
           version = &quot;Beta-0.1&quot;,
           description = &quot;Simple Cookie Clicker Game&quot;,
           author = &quot;n/a&quot;,
           options = dict(build_exe = buildOptions),
           executables = [Executable(&quot;cookieclicker.py&quot;, base=base)])
  </code></pre>
  <p>It says it cannot open this file........... TIA</p>