Skip to content

Instantly share code, notes, and snippets.

View prashantvc's full-sized avatar
:octocat:
Working

Prashant Cholachagudda prashantvc

:octocat:
Working
View GitHub Profile
using System;
using Xamarin.Forms;
namespace TheGridTest
{
public class App
{
public static Page GetMainPage ()
{
libsystem_kernel.dylib 0x396521f0 __pthread_kill + 8
libsystem_c.dylib 0x39602ff9 abort + 74
OzQuake 0x008df090 monotouch_unhandled_exception_handler (monotouch-glue.m:1562)
OzQuake 0x0082b4a7 mono_invoke_unhandled_exception_hook (mini-exceptions.c:2670)
OzQuake 0x00838bb7 mono_thread_abort (mini.c:2821)
OzQuake 0x0082ac91 mono_handle_exception_internal (mini-exceptions.c:1697)
OzQuake 0x00829d1b mono_handle_exception (mini-exceptions.c:1921)
OzQuake 0x008244e1 handle_signal_exception (exceptions-arm.c:529)
OzQuake 0x0023afec MonoTouch.ObjCRuntime.Runtime:GetNSObject<T> (.pmcs-compat.Runtime.cs:994)
OzQuake 0x00253624 MonoTouch.UIKit.UIControlEventProxy:Activated (.pmcs-compat.UIControl.cs:64)
using Xamarin.Forms;
namespace TabPageTestCase
{
public class App
{
public static Page GetMainPage ()
{
return new TabbedDemoPage ();
}
using System;
using Xamarin.Forms;
using System.Diagnostics;
namespace AndroidAnimation
{
public class App
{
public static Page GetMainPage ()
{

MT1008: Failed to launch the simulator: Could not find a part of the path

This usually happens when symbolic link is removed in your /usr/bin directory on the Mac Build Host. To resolve this, you will first need to uninstall the software using one of the below methods:

  • Option 1: You could uninstall Xamarin Studio from /Applications/Xamarin Studio.app and then manually delete all the following directories
/Developer/MonoTouch
/Developer/MonoAndroid

Apple App rejection for using non-public APIs

Apple rules changes over time so it's possible some selector were marked private recently.

Using Link SDK assemblies only or Link all assemblies flags in your Project Options will usually fix this issue.

Addionally you can find the libaries/part of the code that are still using the private API's in your project with the help of strings or find commands.

This will help you workaround code that is still using private APIs after linking

using System;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Forms;
using SplitTest;
using SplitTest.iOS;
using MonoTouch.UIKit;
[assembly:ExportRenderer(typeof(MyMasterPage), typeof(MyMasterPageRenderer))]
namespace SplitTest.iOS
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using Xamarin.Forms;
using System.ComponentModel;
namespace ListBinding
{
public class NamedColor : INotifyPropertyChanged
using Xamarin.Forms;
using System.Diagnostics;
namespace TBTest
{
public class App : Application
{
public App ()
{
public class Camera
{
void TakePicture (object sender, EventArgs args)
{
Init ();
picker.SourceType = UIImagePickerControllerSourceType.Camera;
_callback = Callbak;
PresentViewController (picker, true, null);