Failed to launch iOS application on iOS simulator.

I have build iOS application successfully but when i try to run on iOS simulator it terminate application and through following exception.

Launching 'DadsWA.iOS' on 'iPhone 8 iOS 11.1'...
Loaded assembly: /Users/brar/Library/Caches/Xamarin/XMA/Agents/Inspector/iOS/Xamarin.Interactive.iOS.dll [External]
Loaded assembly: /Users/brar/Library/Caches/Xamarin/XMA/Agents/Inspector/iOS/Xamarin.Interactive.dll [External]
Unhandled Exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

2017-11-04 16:37:05.328 DadsWA.iOS[11518:272610]
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Types' threw an exception. ---> System.DllNotFoundException: jvm.dll
at (wrapper managed-to-native) Java.Interop.NativeMethods:JNI_GetCreatedJavaVMs (intptr[],int,int&)
at Java.Interop.JniRuntime.GetAvailableInvocationPointers () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniRuntime.get_CurrentRuntime () [0x0007b] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironmentInfo..ctor () [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironment+<>c.<.cctor>b__35_0 () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at System.Threading.ThreadLocal1[T].GetValueSlow () [0x00031] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/threading/Th readLocal.cs:345 at System.Threading.ThreadLocal1[T].get_Value () [0x0003e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/threading/ThreadLocal.cs:294
at Java.Interop.JniEnvironment.get_CurrentInfo () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00026] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironment+Types..cctor () [0x000d2] in <7cfbebb561c54efc9010b018c0846c7e>:0
--- End of inner exception stack trace ---
at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniType.GetCachedJniType (Java.Interop.JniType& cachedType, System.String classname) [0x00018] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers.get_JniPeerType ()
[0x0000c] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers+JniStaticMethods.GetMethodInfo (System.String encodedMember) [0x0002b] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Android.OS.Environment.get_ExternalStorageDirectory () [0x00000] in /Users/builder/data/lanes/5147/c2a33d8e/source/xamarin-android/src/Mono.Android/obj/Release/android-24/mcw/Android.OS.Environment.cs:347
at DadsWA.DB.DAL..ctor (System.String sDBPath) [0x00036] in D:\DadsWA\DadsWA\DadsWA\DB\DAL.cs:74
at DadsWA.ServiceForDadsModel..ctor () [0x00011] in D:\DadsWA\DadsWA\DadsWA\ServiceForDadsModel.cs:26
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, Syste
m.Object[] parameters) [0x00002] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:661
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:667
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/ReferenceSources/RuntimeType.cs:179
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/ReferenceSources/RuntimeType.cs:153
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean pu
blicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/rttype.cs:5639
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00039] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/activator.cs:201
at System.Activator.CreateInstance (System.Type type) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/activator.cs:134
at Xamarin.Forms.Xaml.CreateValuesVisitor.Visit (Xamarin.Forms.Xaml.ElementNode node, Xamarin.Forms.Xaml.INode parentNode) [0x00253] in D:\agent_work\1\s\Xamarin.Forms.Xaml\CreateValuesVisitor.cs:93
at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x000ab] in D:\agen
t_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:149
at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:201
at Xamarin.Forms.Xaml.XamlLoader.Visit (Xamarin.Forms.Xaml.RootNode rootnode, Xamarin.Forms.Xaml.HydratationContext visitorContext) [0x00054] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:138
at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.String xaml) [0x0004b] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:89
at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.Type callingType) [0x0002f] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:68
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml] (TXaml view, System.Type callingType) [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ViewExtensions.cs:36
at DadsWA.ServiceForDadTab.InitializeComponent () [0x00000] in D:\DadsWA\DadsWA\DadsWA\obj\Release\DadsWA.Se
rviceForDadTab.xaml.g.cs:19
at DadsWA.ServiceForDadTab..ctor () [0x00006] in D:\DadsWA\DadsWA\DadsWA\ServiceForDadTab.xaml.cs:16
at DadsWA.MainPage..ctor () [0x00065] in D:\DadsWA\DadsWA\DadsWA\MainPage.xaml.cs:48
at DadsWA.App..ctor () [0x0000c] in D:\DadsWA\DadsWA\DadsWA\App.xaml.cs:16
at DadsWA.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00005] in <2a64dcfc86864faf9c6250f660b71902>:0
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at DadsWA.iOS.Application.Main (S
ystem.String[] args) [0x00000] in <2a64dcfc86864faf9c6250f660b71902>:0
2017-11-04 16:37:05.333 DadsWA.iOS[11518:272610] Unhandled managed exception:
Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:667
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/ReferenceSources/RuntimeType.cs:179
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/ReferenceSources/RuntimeType.cs:153
at System.RuntimeT
ype.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/rttype.cs:5639
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00039] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/activator.cs:201
at System.Activator.CreateInstance (System.Type type) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/activator.cs:134
at Xamarin.Forms.Xaml.CreateValuesVisitor.Visit (Xamarin.Forms.Xaml.ElementNode node, Xamarin.Forms.Xaml.INode parentNode) [0x00253] in D:\agent_work\1\s\Xamarin.Forms.Xaml\CreateValuesVisitor.cs:93
at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.F
orms.Xaml.INode parentNode) [0x000ab] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:149
at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:201
at Xamarin.Forms.Xaml.XamlLoader.Visit (Xamarin.Forms.Xaml.RootNode rootnode, Xamarin.Forms.Xaml.HydratationContext visitorContext) [0x00054] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:138
at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.String xaml) [0x0004b] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:89
at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.Type callingType) [0x0002f] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:68
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml] (TXaml view, System.Type callingType) [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ViewExtensions.cs:36
at DadsWA.ServiceForDadTab.InitializeComponent () [0x00000]
in D:\DadsWA\DadsWA\DadsWA\obj\Release\DadsWA.ServiceForDadTab.xaml.g.cs:19
at DadsWA.ServiceForDadTab..ctor () [0x00006] in D:\DadsWA\DadsWA\DadsWA\ServiceForDadTab.xaml.cs:16
at DadsWA.MainPage..ctor () [0x00065] in D:\DadsWA\DadsWA\DadsWA\MainPage.xaml.cs:48
at DadsWA.App..ctor () [0x0000c] in D:\DadsWA\DadsWA\DadsWA\App.xaml.cs:16
at DadsWA.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00005] in <2a64dcfc86864faf9c6250f660b71902>:0
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplic
ation.cs:63
at DadsWA.iOS.Application.Main (System.String[] args) [0x00000] in <2a64dcfc86864faf9c6250f660b71902>:0
--- inner exception ---
The type initializer for 'Types' threw an exception. (System.TypeInitializationException)
at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniType.GetCachedJniType (Java.Interop.JniType& cachedType, System.String classname) [0x00018] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers.get_JniPeerType () [0x0000c] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers+JniStaticMethods.GetMethodInfo (System.String encodedMember) [0x0002b] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Android.OS.Environment.get_ExternalStorageDirectory () [0x00000] in /Users/build
er/data/lanes/5147/c2a33d8e/source/xamarin-android/src/Mono.Android/obj/Release/android-24/mcw/Android.OS.Environment.cs:347
at DadsWA.DB.DAL..ctor (System.String sDBPath) [0x00036] in D:\DadsWA\DadsWA\DadsWA\DB\DAL.cs:74
at DadsWA.ServiceForDadsModel..ctor () [0x00011] in D:\DadsWA\DadsWA\DadsWA\ServiceForDadsModel.cs:26
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:661
--- inner exception ---
jvm.dll (System.DllNotFoundException)
at (wrapper managed-to-native) Java.Interop.NativeMethods:JNI_GetCreatedJavaVMs (intptr[],int,int&)
at Java.Interop.JniRuntime.GetAvailableInvocationPointers () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniRuntime.get_Cu
rrentRuntime () [0x0007b] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironmentInfo..ctor () [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironment+<>c.<.cctor>b__35_0 () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at System.Threading.ThreadLocal1[T].GetValueSlow () [0x00031] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/threading/ThreadLocal.cs:345 at System.Threading.ThreadLocal1[T].get_Value () [0x0003e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/src/mono/mcs/class/referencesource/mscorlib/system/threading/ThreadLocal.cs:294
at Java.Interop.JniEnvironment.get_CurrentInfo () [0x00000] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00026] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <7cfbebb561c54efc9010b018c0846c7e>:0

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

The app has been terminated.

can you please help me out whats wrong here?

Sign In or Register to comment.