title: Mono on MAC OS X El Capitan: LSOpenURLsWithRole
body: <p>I have a .NET software which is running on Mono on both Linux and MAC. The software was packed as .app with <strong>Macpack</strong> on Mono 3.6.0 under OSX Lion and created an installer with PackageMaker. It worked fine on all new versions of OSX up until El Capitan which triggers the following error:</p>
  
  <pre><code>LSOpenURLsWithRole() failed with error -10810 for the file .../Applications/MyApp.app
  </code></pre>
  
  <p>I've moved the development files on El Capitan and managed to pack it with <strong>Macpack</strong> from <strong>Mono 4.0.4.4</strong>. It doesn't seem to show that error when using </p>
  
  <pre><code>open -a MyApp.app
  </code></pre>
  
  <p>The only problem now is that it doesn't start on double-click. The software is installed in /Applications by the installer. It starts fine from console with <strong>open</strong> command but not on double-click. Is there a way I can see an error or something by emulating the double-click from console ?</p>
  
  <p>PS. Also on El Capitan the only Mono framework that seems to work is the latest 4.0.4.4 or the one designed for El Capitan, 4.2.1. The new location for the binaries are in /usr/local/bin instead of /usr/bin and this works only if /usr/local/bin exists prior to installation, otherwise mono command won't be recognized.</p>
  
  <p>Thanks</p>