Configuring code signing in Xamarin Studio ⚓
You can specify the code signing configuration for your Xamarin Android project by creating a signed APK in Xamarin Studio.
- Log into your
Xamarin Studio
. - Double click on your Xamarin Android project to open
Project Option
. - Select the
Android Package Signing
inBuild group
. - Select your platform in the
Configuration - Platform
. - Check the
Sign .APK file using the following keystore details
. - Fill out the signing information.
Using the same keystore path locally and on bitrise.io for Xamarin Android ⚓
You cannot use environment variables in your keystore path in your Xamarin project! The keystore path has to be relative to the folder of your Xamarin Android project. You can also use an absolute path.
You can use the same path on your local machine and on bitrise.io by putting your keystore into your repository.
Since your keystore is gitignored, you have to upload your keystore to the GENERIC FILE STORAGE
of Bitrise and download it to the same location in the build.
- On the
Dashboard
, click on yourWorkflow
tab. - Click on
Code signing
. - Scroll down to the
GENERIC FILE STORAGE
field. -
Type your environment variable name here in the first field. In our example, we use
XAMARIN_KEYSTORE
. -
Upload your keystore file in the
Upload file field
.Your environment variable (for example,
$BITRISEIO_XAMARIN_KEYSTORE_URL
) will be automatically available with the download URL of your keystore file. - Navigate back to your workflow.
- Insert the
File Downloader
step before theXamarin Archive
step. TheFile Downloader
step will get aDownload source url
input. - Type your environment variable, for example,
$BITRISEIO_XAMARIN_KEYSTORE_URL
in theDownload source url
field. - Set your keystore path in the
Download destination path
.