title: Py2app: Operation not permitted
body: <p>I want to create an application called 'dodgeball' and I have my main script (which uses pygame), and my setup.py script. I need an image named ball.bmp that I need as well.</p>
  
  <p>Inside my setup.py script I have the following code:
  
      from setuptools import setup</p>
  
  <pre><code>APP = ['dodgeball.py']
  DATA_FILES = ["ball.bmp"]
  OPTIONS = {'argv_emulation': True}
  
  setup(
      app=APP,
      data_files=DATA_FILES,
      options={'py2app': OPTIONS},
      setup_requires=['py2app'],
  )
  </code></pre>
  
  <p>Whenever I try to make the application using the following stuff in Terminal:</p>
  
  <pre><code>python setup.py py2app
  </code></pre>
  
  <p>everything works up to</p>
  
  <pre><code>*** creating application bundle: dodgeball ***
  </code></pre>
  
  <p>then it returns an error:</p>
  
  <pre><code>error: [Errno 1] Operation not permitted: '/Users/**********/Desktop/Dodgeball/dist/dodgeball.app/Contents/MacOS/dodgeball'
  </code></pre>
  
  <p>If it helps, I'm on Mac OS X  El Capitan (10.11). I'm aware that El Capitan, like any Apple update, will have new software and features that may break stuff like this.</p>
  
  <p><strong>QUESTION</strong></p>
  
  <p>How do I fix this error and then allow py2app to make a fully functionable app?</p>