Setup Xamarin CRM app for Xamarin Studio on OS X - xamarin/demo-xamarincrm GitHub Wiki

1. Ensure the Xamarin platform is installed

2. Ensure Xamarin products are updated

Xamarin Studio will periodically automatically check for updates. You can also manually check for updates.

images/XamarinCRM_UpdateCheck_OSX.png

3. Ensure Xamarin Android Player is installed

width=400px

Download & Install: Install the Xamarin Android player for OS X or Windows to debug on an Android simulator.

Google Play Services & Maps: Xamarin CRM utilizes Google Maps and Google Play Services. It is possible to install these services yourself by using sources like those from CyanogenMod.

Download the zip file, unlock the Android Player, and drag and drop the zip file onto the Android Player. Restart and update apps, and install Google Maps from the Play store.

Note: The Android Player cannot run inside a virtual machine or over Remote Desktop or VNC since it relies on virtualization and OpenGL. If you are running a virtual Windows instance on a Mac host, run Android Player for OS X on the Mac host. The Windows instance will be able to connect via ADB (see below).

4. Physical Device Setup

To deploy and debug the application on a physical device, refer to these links:

####iOS Deploying and debugging to an iOS device requires an active subscription with the Apple Developer Program. Follow these steps to provision your iOS device.

####Android Follow this guide for setting up an Android device for development.

5. Project Setup

Restore NuGet packages for the project

width=400px

6. Setup Android Google Maps API key

If maps do not show up on the Android version of the app, make sure you have followed the steps in the “Pre-Requisites: Xamarin Android Player” (above).

If the maps still do not render, you may need to generate your own API key for Google Maps API v2. Instructions on how to do this are located here:

http://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/obtaining_a_google_maps_api_key/

7. Debugging for iOS

######Choose the Debug configuration:

width=350px

######Set the iOS project to be the Startup Project:

width=400px

######Depending on whether you're debugging on the iOS simulator or a connected iOS device, make a selection:

width=350px

######Start debugging by hitting the Play button:

width=500px

8. Debugging for Android

######Choose the Debug configuration:

width=350px

######Set the Android project to be the Startup Project:

width=400px

######Depending on whether you're debugging on the Xamarin Android Player or a connected device, make a selection:

width=350px

######Start debugging by hitting the Play button:

width=500px