Posts

iOS AOT errors on device

If your application is running correctly in the iOS simulator but you see AOT errors on the device itself one possible fix is to enable generic value type sharing in the advanced tab of the iOS Build settings in Xamarin Studio. See the Xamarin docs (iOS specific enhancements section) for more details: http://docs.xamarin.com/releases/ios/xamarin.ios_6/xamarin.ios_6.4/

Developing Android Apps with Xamarin - Useful Links

Xamarin Docs - Android Resources http://docs.xamarin.com/guides/android/application_fundamentals/resources_in_android/part_4_-_creating_resources_for_varying_screens/ Android Asset Studio http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html

Useful stuff to help with Xamarin Android Bindings

At  YARG , we have successfully created Xamarin bindings to Good Technology's iOS Good Dynamics SDK and we've now got a few iOS Enterprise Apps out there in the field.  We're now in the process of creating the Android binding set, we're not far off but we still have a few interfaces / classes that we need to expose.  As a point of reference on some of the toolsets we're using I thought I'd jot them down here. When you're binding against a .jar file it's very handy to traverse the package to see what classes, types etc are exposed. To do this, you have a few options (of course there are more but these work for us and they're free) Extracting the Contents of a JAR File  which is the standard command line operation on a Mac OSX On Windows development boxes we use this excellent free tool JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files When you are trying to create your Xamarin Android bindings you...

Backgrounding with Xamarin and other useful links

Backgrounding  http://docs.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/iOS  Backgrounding with Tasks  http://docs.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/ios_backgrounding_with_tasks/offline.pdf iOS Backgrounding Guidance http://docs.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/part_5_ios_backgrounding_guidanc e/ Android Network Discovery  http://developer.android.com/training/connect-devices-wirelessly/nsd.html Compiling for Different Devices http://docs.xamarin.com/guides/ios/advanced_topics/compiling_for_different_devices/ Memory and Performance Best Practices Techniques for Building Efficient Xamarin Applications  http://docs.xamarin.com/guides/cross-platform/application_fundamentals/memory_perf_best_practices/#2.1.a-quick-overview-of-the-sgen-garbage-collector  App Store Submission Tips  https://de...

Useful Xamarin .NET PCL Links

Cross-Platform Development with the Portable Class Library http://msdn.microsoft.com/en-us/library/gg597391.aspx Azure Mobile Services https://github.com/xamarin/azure-mobile-services/tree/master/sdk/xamarin SQLite.net Portable Class Libraries (PCL) https://github.com/oysteinkrog/SQLite.Net-PCL SQLite.net Portable Class Libraries (PCL) - Raw low level https://github.com/ericsink/SQLitePCL.raw Universal Apps: What Are They And Can I Use Them With Xamarin? http://windingroadway.blogspot.co.uk/2014/04/universal-apps-what-are-they-and-can-i.html Other  http://windowsappdev.com/ http://xamarinappdev.com/

iOS Cannot install applications because the certificate is not valid

When you upgrade to iOS 7.1 and try to distribute an App via your own means, say for Enterprise distribution, you may get the following error when you try and download the plist. 'Cannot install applications because the certificate for <hostname> is not valid' It turns out that App have changed the rules with 7.1, the plist file must be behind a certificate. So instead of http://www.myexample.com/manifest.plist it will need to be https://www.myexample.com/manifest.plist This is a real pain if you're a small outfit as you'll have to purchase a SLL certificate. One option is to use Azure as you'll get a default SSL that you can use. Remember if you're rolling your own distribution you will need to make sure your web server, i.e. IIS, understands the mime types .ipa and .plist

System.UnauthorizedAccessException error with Visual Studio and Xamarin

When you try and install Mono.Android in Visual Studio for the first time you may find that you're presented with an error similar to the one below: System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\Mono for Android\License' is denied. at Xamarin.Components.Ide.Activation.ActivationService.GetErrorWorkflow(LicenseSyncResult[] results, Boolean ignoreSyncErrors) at Xamarin.Components.Ide.Activation.ActivationService.<GenerateFullWorkflowSequence>d__88.MoveNext() at Xamarin.Components.Ide.Activation.ActivationDialog.DisplayWorkflowStep(ActivationWorkflowStep step) at Xamarin.Components.Ide.Activation.ActivationDialog.<>c__DisplayClass13.<StartSpinnerTaskAndScheduleContinuation>b__12(Task t) If you close down VS and run it again as an Administrator it should sort the issue out. Remember activation of your Xamarin licenses doesn't actually kick off until you run the project for the first time. If you're still having activat...