How to inflate UI control from AAR Binding Library? - xamarin.android

I have made an AAR Bingind Library from a .AAR lib as per these instructions.
It contains a custom UI control.
When I try to inflate the control:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:multi="clr-namespace:PL.Openrnd.Multilevellistview;assembly=MultiLevelListAarBinding"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<multi:MultiLevelListView
android:id="#+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:alwaysExtended="false"
app:nestType="multiple">
</multi:MultiLevelListView >
</LinearLayout>
I get this error:
04-15 18:09:53.191: E/AndroidRuntime(19635): FATAL EXCEPTION: main
04-15 18:09:53.191: E/AndroidRuntime(19635): Process: DroidApp1.DroidApp1, PID: 19635
04-15 18:09:53.191: E/AndroidRuntime(19635): java.lang.RuntimeException: Unable to start activity ComponentInfo{DroidApp1.DroidApp1/md5bb1ba76b602cc549b908ee4ab65f64d1.MainActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class MultiLevelListView
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread.-wrap11(ActivityThread.java)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.os.Handler.dispatchMessage(Handler.java:102)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.os.Looper.loop(Looper.java:148)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread.main(ActivityThread.java:5417)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.reflect.Method.invoke(Native Method)
04-15 18:09:53.191: E/AndroidRuntime(19635): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
04-15 18:09:53.191: E/AndroidRuntime(19635): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-15 18:09:53.191: E/AndroidRuntime(19635): Caused by: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class MultiLevelListView
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
04-15 18:09:53.191: E/AndroidRuntime(19635): at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.Activity.setContentView(Activity.java:2172)
04-15 18:09:53.191: E/AndroidRuntime(19635): at md5bb1ba76b602cc549b908ee4ab65f64d1.MainActivity.n_onCreate(Native Method)
04-15 18:09:53.191: E/AndroidRuntime(19635): at md5bb1ba76b602cc549b908ee4ab65f64d1.MainActivity.onCreate(MainActivity.java:29)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.Activity.performCreate(Activity.java:6251)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
04-15 18:09:53.191: E/AndroidRuntime(19635): ... 9 more
04-15 18:09:53.191: E/AndroidRuntime(19635): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class MultiLevelListView
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
04-15 18:09:53.191: E/AndroidRuntime(19635): ... 18 more
04-15 18:09:53.191: E/AndroidRuntime(19635): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.MultiLevelListView" on path: DexPathList[[zip file "/data/app/DroidApp1.DroidApp1-1/base.apk"],nativeLibraryDirectories=[/data/app/DroidApp1.DroidApp1-1/lib/arm, /data/app/DroidApp1.DroidApp1-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
04-15 18:09:53.191: E/AndroidRuntime(19635): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.createView(LayoutInflater.java:583)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:677)
04-15 18:09:53.191: E/AndroidRuntime(19635): at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:68)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
04-15 18:09:53.191: E/AndroidRuntime(19635): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
04-15 18:09:53.191: E/AndroidRuntime(19635): ... 22 more
04-15 18:09:53.191: E/AndroidRuntime(19635): Suppressed: java.lang.ClassNotFoundException: android.view.MultiLevelListView
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.Class.classForName(Native Method)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
04-15 18:09:53.191: E/AndroidRuntime(19635): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
04-15 18:09:53.191: E/AndroidRuntime(19635): ... 28 more
04-15 18:09:53.191: E/AndroidRuntime(19635): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I have also tried the full namespace:
<PL.Openrnd.Multilevellistview.MultiLevelListView...
But that doesn't work either.
What am I missing? is there somethings else needed for referencing a native Java control?

As things turned out, one has to lower case the name space.
<pl.openrnd.multilevellistview.MultiLevelListView...

Related

[UIRemoteKeyboardWindow release]: message sent to deallocated instance

I've tried multiple variations of this,but none of them seem to work. Any ideas?
crash in auto release pool.
Crash log:
2016-11-25 10:34:44.659 DHOTT[60818:1388887] [DEBUG][2016/11/25 10:34:44.659422]has UIRemoteKeyboardWindow > at DHToast.m:190 lines
2016-11-25 10:34:44.662 DHOTT[60818:1382729] *** -[UIRemoteKeyboardWindow release]: message sent to deallocated instance 0x7c555c00
(lldb) po 0x7c555c00
2016-11-25 10:38:03.920 DHOTT[60818:1382729] *** -[UIRemoteKeyboardWindow respondsToSelector:]: message sent to deallocated instance 0x7c555c00
Crash stack:
Incident Identifier: F7B960B4-C2CD-4FDE-8851-7678AF5C6CFA
CrashReporter Key: 767929adc7679416f668cc342d827b3c4cc1e57d
Hardware Model: iPhone8,2
Process: [799]
Path: /private/var/mobile/Containers/Bundle/Application/FFF13FF6-19C7-4A65-8447-F1983064C685/
Identifier: com.dada.dh.share
Version: 20161107152706 (1.0.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-11-07 16:16:07.07 +0800
Launch Time: 2016-11-07 15:34:04.04 +0800
OS Version: iOS 9.2 (13C75)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Triggered by Thread: 0
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
47.145841 AppleJPEG 0x00000001828d4ff4 [0x160182c00] Decoding completed without errors
47.147908 AppleJPEG 0x00000001828d318c [0x60182c00] Options: 1x148 [000000DA,FFFFFFFF] FFFFFFFF
47.147908 AppleJPEG 0x00000001828d3044 [0x160182c00] Decoding: C0 0x009400DA 0x0000304A 0x22111100 0x00000000 5137
47.149789 AppleJPEG 0x00000001828d2338 [0x160182c00] Created session
47.294822 AppleJPEG 0x00000001828d4ff4 [0x160047000] Decoding completed without errors
47.295489 AppleJPEG 0x00000001828d318c [0x160047000] Options: 132x99 [FFFFFFFF,FFFFFFFF] 00025060
47.295489 AppleJPEG 0x00000001828d3044 [0x160047000] Decoding: C0 0x00840063 0x0000304A 0x22111100 0x00000000 3512
47.296253 AppleJPEG 0x00000001828d2338 [0x60047000] Created session
48.979907 AppleJPEG 0x00000001828d4ff4 [0x160272c00] Decoding completed without errors
48.980227 AppleJPEG 0x00000001828d318c [0x160272c00] Options: 400x225 [FFFFFFFF,FFFFFFFF] 00025060
48.980227 AppleJPEG 0x00000001828d3044 [0x160272c00] Decoding: C0 0x019000E1 0x0000304A 0x22111100 0x00000000 11482
48.980228 AppleJPEG 0x00000001828d4ff4 [0x160284c00] Decoding completed without errors
48.981071 AppleJPEG 0x00000001828d318c [UNSUP] Options: 23078988x-1879048192 [E1000001,FF000000] FFFFFFFF
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001808edbd0 objc_msgSend + 16
1 CoreFoundation 0x00000001811593e0 -[__NSArrayM dealloc] + 152
2 libobjc.A.dylib 0x00000001808f5ae8 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508
3 CoreFoundation 0x000000018115142c _CFAutoreleasePoolPop + 28
4 CoreFoundation 0x0000000181222a20 __CFRunLoopRun + 1636
5 CoreFoundation 0x0000000181151680 CFRunLoopRunSpecific + 384
6 GraphicsServices 0x0000000182660088 GSEventRunModal + 180
7 UIKit 0x0000000185fc8d90 UIApplicationMain + 204
8 DHOTT 0x00000001002e286c main (main.m:16)
9 libdyld.dylib 0x0000000180cf28b8 start + 4
you can eidt your scheme, check the diagnostics->Zombie Objects.
Then ,repeat your crash ,in console you will see which object was release.

Launching Xamarin iOS app fails with log message "An error occurred searching types for the given assembly"

Summary
I'm trying to develop an iOS app in Visual Studio based on Xamarin Forms, but what I'm finding is that the app fails to launch on my phone when I try to run it. I have a valid iOS development certificate and I've been able to launch the app in the past, although I'm not sure what could have changed between then and now (I've been working on it very on and off).
The error I'm getting within Visual Studio's debug console is Launch failed. The app '<<app name>>' could not be launched on '<<my iPhone>>'. Please check the logs for more details.
I've included the Xamarin logs further down.
Environment
I'm developing my project in Visual Studio on a Windows 10 PC. I'm using a MacBook Pro on the same network as the Xamarin Mac agent, and that's connected by USB to an iPhone 6s Plus which serves as the build target.
Windows 10 64-bit
Visual Studio 2015 Update 3
Xamarin 4.1.1.3
Xamarin.Android 6.1.1.1
Xamarin.iOS 9.8.1.4
Macbook Pro with OS X El Capitan 10.11.6 acting as Xamarin Mac agent
XCode 7.3.1 (on Mac agent)
Xamarin Studio 6.0.2 on Mac agent (no updates required on stable channel)
iPhone 6s Plus (device target)
Installed Nuget packages
<packages>
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wpa81" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="portable45-net45+win8+wpa81" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wpa81" />
<package id="modernhttpclient" version="2.4.2" targetFramework="portable45-net45+win8+wpa81" />
<package id="rda.SocketsForPCL" version="1.2.2" targetFramework="portable45-net45+win8+wpa81" />
<package id="WebSocket.Portable.Core" version="1.2.6" targetFramework="portable45-net45+win8+wpa81" />
<package id="WebSocketSharp" version="1.0.3-rc10" targetFramework="portable45-net45+win8+wpa81" />
<package id="Xamarin.Forms" version="2.3.1.114" targetFramework="portable45-net45+win8+wpa81" />
</packages>
Further Details
When I try to execute my app, I get the following error logs. The root cause seems to be that it cannot find the C# type System.ComponentModel.Win32Exception:
Xamarin.VisualStudio.Forms.Intellisense.ProjectTypeResolver Error: 0 : [2016-08-07 22:07:07.7530] An error occurred searching types for the given assembly
System.TypeLoadException: Cannot find type System.ComponentModel.Win32Exception in module System.dll.
at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError)
at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
at Microsoft.MetadataReader.TypeProxy.get_Module()
at Microsoft.MetadataReader.MetadataOnlyTypeDef.Equals(Type other)
at Microsoft.VisualStudio.Shell.Design.TypeWrapper.Equals(Type o)
at Microsoft.MetadataReader.MetadataOnlyTypeDef.IsValueTypeHelper()
at Microsoft.MetadataReader.MetadataOnlyTypeDef.IsValueTypeImpl()
at Microsoft.VisualStudio.Shell.Design.TypeWrapper.IsValueTypeImpl()
at System.Type.get_IsClass()
at Xamarin.VisualStudio.Forms.Intellisense.ProjectTypeResolver.<SearchTypesAsync>b__19_0() in C:\Users\builder\data\lanes\3420\34a92cd0\source\xamarinvs\src\Features\VisualStudio.Forms.Intellisense\ProjectTypeResolver.cs:line 184
Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-08-07 22:07:11.4859] An error occured on the receiver while executing a post for topic xvs/idb/4.1.1.3/launch-app and client vs11512david
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client IDB4113 while executing a reply for topic xvs/idb/4.1.1.3/launch-app ---> Xamarin.Messaging.Exceptions.MonotouchException: warning HE0041: Error while processing device notifications: NotificationCallback with unknown message: 5
at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__6.MoveNext () <0x7566158 + 0x007e3> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.MTouch+<DeployAsync>d__4.MoveNext () <0x75c41b8 + 0x0032f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<RunMTouchAsync>d__17.MoveNext () <0x75c3a18 + 0x0021b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceWithoutAssetsAsync>d__16.MoveNext () <0x75c2478 + 0x001db> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceAsync>d__14.MoveNext () <0x75c1880 + 0x004b7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteAsync>d__12.MoveNext () <0x75c10e0 + 0x0039f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x18a92a0 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__5[TMessage,TResult].MoveNext () <0x75605c8 + 0x003d7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_0`2+<<RegisterHandlerAsync>b__1>d[TMessage,TResult].MoveNext () <0x755fc08 + 0x002bb> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__34`2[TRequest,TResponse].MoveNext () <0x755ec90 + 0x00383> in <filename unknown>:0
--- End of inner exception stack trace ---
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__22`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__26`2.MoveNext()
Xamarin.VisualStudio.IOS.IdbClient Error: 0 : [2016-08-07 22:07:14.0450] Launch failed. The app 'TestCubeWebMobileiOS' could not be launched on 'David's iPhone'. Please check the logs for more details.
Xamarin.Messaging.Exceptions.MonotouchException: warning HE0041: Error while processing device notifications: NotificationCallback with unknown message: 5
at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__6.MoveNext () <0x7566158 + 0x007e3> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.MTouch+<DeployAsync>d__4.MoveNext () <0x75c41b8 + 0x0032f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<RunMTouchAsync>d__17.MoveNext () <0x75c3a18 + 0x0021b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7530 + 0x0001f> 25562 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceWithoutAssetsAsync>d__16.MoveNext () <0x75c2478 + 0x001db> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteOnPhysicalDeviceAsync>d__14.MoveNext () <0x75c1880 + 0x004b7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x1bd7750 + 0x0001f> 25569 in <filename unknown>:0
at Xamarin.Messaging.IDB.Handlers.LaunchAppMessageHandler+<ExecuteAsync>d__12.MoveNext () <0x75c10e0 + 0x0039f> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x18a92a0 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__5[TMessage,TResult].MoveNext () <0x75605c8 + 0x003d7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_0`2+<<RegisterHandlerAsync>b__1>d[TMessage,TResult].MoveNext () <0x755fc08 + 0x002bb> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x18ab6f0 + 0x00035> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x18a8f10 + 0x000b7> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x18a8e70 + 0x00087> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x18a8e20 + 0x0003f> in <filename unknown>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x18a9720 + 0x00024> in <filename unknown>:0
at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__34`2[TRequest,TResponse].MoveNext () <0x755ec90 + 0x00383> in <filename unknown>:0
Update
After upgrading to Xamarin 4.1.2.18 based on Marcos' response I find that I still can't debug my app but I get a different error log output, posted here (because I can't fit it within this post body).
It does still complain about not finding Win32Exception, however.
Update 2
I can build and launch Xamarin iOS apps that are developed on my Macbook Pro within Xamarin Studio
I can successfully launch and debug my (actual) Xamarin Forms app using an iOS simulator from my Windows machine (this is actually really useful if I can't resolve this bug).
I cannot successfully launch/debug my actual Xamarin Forms app on my actual iPhone from my Windows machine.
Try to update to the latest alpha release is 4.2.0.413 - installed on both Windows machine and Xamarin Mac Host
I have install the version of Xamarin 4.1.2.18
Try Tools -> Options -> Xamarin -> others in the windows try (Check now) for the new stable updates.
xvs/idb/4.1.1.3/launch-app if you watch in the error I saw a version lower to the update in your VS2015, both xamarin need to be in the same version in the mac and the windows.
Make sure when you conect with the Xamarin Mac Agent have the same version that you have in your windows

Xamarin IOS SIGSEGV when debugging

I am getting an error when I am debugging and mouse over a variable to gets its value, I am then getting this error popup http://gyazo.com/1a3cfe39d135e5807d41d2acf3b54b90
and then the debugger crashes with a SIGSEGV error.
Here is the Stacktrace:
2015-03-04 14:31:00.568 AppName[839:11564] critical: Stacktrace:
2015-03-04 14:31:00.568 AppName[839:11564] critical: at <unknown> <0xffffffff>
2015-03-04 14:31:00.568 AppName[839:11564] critical: at Core.DataLayer.DataConnection.GetDatabasePath () [0x00063] in /Users/me/Projects/AppName/Core/DataLayer/DataAccess.cs:24
2015-03-04 14:31:00.568 AppName[839:11564] critical: at Core.DataLayer.DataConnection.SetupDatabaseIfNeeded () [0x00002] in /Users/me/Projects/AppName/Core/DataLayer/DataAccess.cs:88
2015-03-04 14:31:00.569 AppName[839:11564] critical: at IOS.AppDelegate.FinishedLaunching (UIKit.UIApplication,Foundation.NSDictionary) [0x0000b] in /Users/me/Projects/AppName/IOS/AppDelegate.cs:66
2015-03-04 14:31:00.569 AppName[839:11564] critical: at (wrapper runtime-invoke) <Module>.runtime_invoke_bool__this___object_object (object,intptr,intptr,intptr) <IL 0x00066, 0xffffffff>
2015-03-04 14:31:00.569 AppName[839:11564] critical: at <unknown> <0xffffffff>
2015-03-04 14:31:00.569 AppName[839:11564] critical: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x000a6, 0xffffffff>
2015-03-04 14:31:00.570 AppName[839:11564] critical: at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
2015-03-04 14:31:00.570 AppName[839:11564] critical: at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
2015-03-04 14:31:00.570 AppName[839:11564] critical: at IOS.Application.Main (string[]) [0x00008] in /Users/me/Projects/AppName/IOS/Main.cs:17
2015-03-04 14:31:00.570 AppName[839:11564] critical: at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
2015-03-04 14:31:00.570 AppName[839:11564] critical:
Native stacktrace:
2015-03-04 14:31:00.571 AppName[839:11564] critical:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Application Terminated
Got the same error. There were variables in Watch window from other project. Clearing all variables helped.

EKCalendar title crashing app (MonoTouch.EventKit.EKCalendar.set_Title)

I have a problem with EKCalendar from MonoTouch.EventKit. Application is crashing when I try to set a title by a property. It doesn't occur every time, just twice. Here are a fragment of my logs:
Apr 29 16:49:19 iPad[973] <Error>: Stacktrace:
Apr 29 16:49:19 iPad[973] <Error>: at <unknown> <0xffffffff>
Apr 29 16:49:19 iPad[973] <Error>: at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (intptr,intptr,intptr) <0xffffffff>
Apr 29 16:49:19 iPad[973] <Error>: at MonoTouch.EventKit.EKCalendar.set_Title (string) [0x0001b] in /Developer/MonoTouch/Source/monotouch/src/EventKit/.pp-EKCalendar.g.cs:134
Apr 29 16:49:19 iPad[973] <Error>: at OverwriteEKCalendar (MonoTouch.EventKit.EKCalendar) [0x00022] in \Services\Calendar\EKCalendarTouch.cs:229
Apr 29 16:49:19 iPad[973] <Error>: at Services.Calendar.CalendarService.OverwriteCalendar
Code is very simple:
public void OverwriteEKCalendar(EKCalendar calendar)
{
if (this.CGColor != null)
{
calendar.CGColor = this.CGColor.ToCGColor();
}
calendar.Title = this.Title;
}
Do you have any idea what's going on?

Xcode5 get an EXC_ARM_DA_ALLIGN error

I have an iPhone&ipad App which runs on IOS6&IOS7, With Xcode4.6 and LLVM GCC 4.2. Howerver, after I upgrade to Xcode5 whit Apple LLVM 5.0, I try to run it on an iPhone5 with IOS7.0, the App will receive an EXC_ARM_DA_ALLIGN exception while initialising the global & static data before entering the main function.
0x693006: vld1.64 {d8, d9, d10, d11}, [r4, :128]! thread 1 EXC_BAD_ACCESS(code=EXC_ARM_DA_ALIGN, address=0x27dd5824)
the value in the r4 is 0x27dd5824 which is 32bits alignment, but seems vld1.64 require a 64bits alignment, and the EXC_ARM_DA_ALLIGN comes.
My target deploy IOS is 6.0, Architectures Standard architectures(armv7, armv7s), so I am sure the Xcode should generate 32bit code for me.
Why I am getting this issue, cause my data is 32bits align already.
Any help would be appreciated.
Edit :
I check the gcc version assembly code and did not found VLD1.64 called .
Edit add crash log :
Incident Identifier: 81A2A2B6-1A4C-450E-88A7-DF7F2F8E7619
CrashReporter Key: c66d6f7407948d2a6ba1ecc45d6c9348d11a2ed7
Hardware Model: iPhone5,2
Process: XXXXXXXX [224]
Path: /var/mobile/Applications/CBDF28BD-4EFA-46B9-8E94-7BFCE265541B/XXXXXXXXX.app/XXXXXXXX
Identifier: com.XXXX.XXXX.XXXX
Version: 1.1.7 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-24 17:08:39.263 +0800
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: EXC_ARM_DA_ALIGN at 0x27d12914
Triggered by Thread: 0
Thread 0 Crashed:
0 myApp 0x00756006 MEMORYxxxDEVICE::MEMORYxxxDEVICE() (xxxx.xxxx.cpp:2146)
1 myApp 0x0073db40 GLOBAL_I_a (xxxx.xxxx.cpp:3042)
2 dyld 0x2bee459e
ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 174
3 dyld 0x2bee46ac ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 16
4 dyld 0x2bee1d34 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 356
5 dyld 0x2bee1b88 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 36
6 dyld 0x2bed8d38 dyld::initializeMainExecutable() + 164
7 dyld 0x2bedbab4 dyld::_main(macho_header const*, unsigned long, int, char const*, char const*, char const*, unsigned long) + 1748
8 dyld 0x2bed822a dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 346
9 dyld 0x2bed8064 _dyld_start + 60
Thread 1:
0 libsystem_kernel.dylib 0x3b9c8838 kevent64 + 24
1 libdispatch.dylib 0x3b9170d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3b91163e _dispatch_mgr_thread + 34
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x27d128f8 r1: 0x00000000 r2: 0x00038600 r3: 0x00002860
r4: 0x27d12914 r5: 0x2befb95c r6: 0x0073db2d r7: 0x27d128b0
r8: 0x00000204 r9: 0x00000001 r10: 0x000002b1 r11: 0x2befd754
ip: 0x3d7f70a8 sp: 0x27d128a4 lr: 0x00000000 pc: 0x00756006
cpsr: 0x40000030

Resources