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