title: Using the mono profiler with app bundle on osx
body: <p>I'm trying to profile an application bundle generated through by using the command line mono parameter <em>--profile</em> but i can't get it to work.</p>
  
  <p>Calling the on the exe located in the .app bundle will result in this :</p>
  
  <blockquote>
    <p>No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting</p>
  </blockquote>
  
  <p>Otherwise, inside Xamarin Studio, in <em>Project Options -> Run -> General</em> you can set environment variables but they seems to be totally ignored when you run the application through the xam.mac debugger.</p>
  
  <p>My only success so far has been to use a bash script and doing stuff like <em>export MONO_LOG_LEVEL="debug"</em>, enabling mono's logs you can't get through the UI. But again i can't get it to add the <em>--profile</em> parameter needed.</p>
  
  <p>Notes: </p>
  
  <ol>
  <li>I'm using the mono runtime (3.2.6) and xamarin studio (4.2.3)</li>
  <li>I can't changed my app to a console app</li>
  <li>This is <em>not</em> a monotouch application but a full fledge osx app</li>
  </ol>