How do I set Mono Runtime environment variables for iOS projects in Xamarin Studio?

PDF for offline use

Let us know how you feel about this

Translation Quality


last updated: 2017-03

If you need to set any runtime environment variables for Mono, they can be set in the Project Options > Run > General page.

Note: Garbage Collection environment variables for SGen (MONO_GC_PARAMS) set this way will only be used when launching from Xamarin Studio. If you launch the app from the device, the settings for Sgen will be ignored.

To permanently set an environment variable for an app, you need to add this as an additional mtouch argument (for all relevant configurations):


To see the environment variables that can be set, refer to the Mono man page: See the section titled: ENVIRONMENT VARIABLES

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.