Build and Sign Xamarin Forms apps via Visual Studio command line tools

Automate via command line building projects in Visual Studio for Mac. Create APK and IPA files. I want to share two simple script to build and sign iOS and Android apps via Visual Studio for OSX command line tools. It’s useful to automate the process when using external script or testing tools.

To sign the apps with the scripts you have to configure the right sign keys inside the projects with Visual Studio. Right click on the projects in Visual Studio and setup the sign keys for the Release mode in both Android and iOS.

And now execute the scripts.

Script for iOS

Script for Android