Xamarin.forms ios Native Crash in custom ButtonRenderer - xamarin.forms

I updated Xamarin.forms package from nuget to 5.0.0.2244. The package has been updated both in common and iOS projects.
I created a custom renderer for a button element. The first lines of the renderer are:
[assembly: ExportRenderer(typeof(AppButton), typeof(AppButtonRenderer))]
namespace com.app.iOS.Renderers
{
public class AppButtonRenderer : ButtonRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Button> e)
{
try
{
base.OnElementChanged(e);
Before the update, when execution executed base.OnElementChanged method everything has gone right, but now I'm getting a stack trace like the one following this issue. Same thing happens with Xamarin.Forms 5.0.0.2196. What's wrong?
Infos:
Visual Studio: 16.11.7
Thank you in advance
=================================================================
Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x1043f81e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
0x1043eec5c - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaa6180 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaa6544 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x1abaa1958 -
0x10459dc04 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x1abaabbe0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abaac3a0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab98bddc - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab991ea0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1043fbbb8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
0x1f527c29c - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x1aaa53d94 - /System/Library/Frameworks/Foundation.framework/Foundation : <redacted>
0x10459dc34 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var
0x10459db78 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x1ab98b664 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab988984 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac20fd7c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac20f444 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac210348 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac221888 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
e
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044aee08 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke
0x10458a0e0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline
0x10458f9d4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampolin
0x104590548 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline
0x1ac1caa08 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1cc49c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d25e8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826598 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abd8f634 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : _UIScenePerformActionsWithLifecycleActionMask
0x1ab827130 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826bf0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab826f40 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab82677c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab82ecc0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abc9d04c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abda8444 - /System/Library/PrivateFrameworks/UIKitCore.framework/
UIKitCore : _UISceneSettingsDiffActionPerformChangesWithTransitionContext
0x1ab82e9b8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab6568a0 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab655220 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ab6564c8 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d0788 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1abcc66ac - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1b8d495d8 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d74d44 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d586a4 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d74a0c - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1a93da7ec - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a93de2dc - /usr/lib/system/libdispatch.dylib : <redacted>
0x1b8d9cfa0 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d9cc30 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1b8d9d184 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices : <redacted>
0x1a9767848 - /System/Library/Framewo
rks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9767744 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9766ab4 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a9760a28 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : <redacted>
0x1a97601c0 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunSpecific
0x1c0d48734 - /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices : GSEventRunModal
0x1ac1ce7e4 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : <redacted>
0x1ac1d4054 - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIApplicationMain
0x10459db90 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS
.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044b2000 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_try_invoke_array
0x10445b4f0 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.
==============================================================
Memory around native instruction pointer (0x1f527c640):0x1f527c630 21 00 05 8b 20 04 40 ac 21 80 00 91 42 00 05 cb !... .#.!...B...
0x1f527c640 02 0c 00 ac 42 00 01 f1 e9 00 00 54 60 04 00 ac ....B......T`...
0x1f527c650 63 80 00 91 20 04 40 ac 21 80 00 91 42 80 00 f1 c... .#.!...B...
0x1f527c660 68 ff ff 54 21 00 02 8b 22 0c 40 ac 60 04 00 ac h..T!...".#.`...
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_UIntPtr <0x00022>
at Foundation.NSMutableData:AppendBytes <0x00054>
at Foundation.NSData:FromStream <0x0010c>
at Xamarin.Forms.Platform.iOS.EmbeddedFontLoader:LoadFont <0x00016>
at Xamarin.Forms.Internals.FontRegistrar:HasFont <0x0013e>
at Xamarin.Forms.Platform.iOS.FontExtensions:CleanseFontName <0x0000c>
at Xamarin.Forms.Platform.iO
0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:Cre
S.FontExtensions:_ToNativeFont <0x00124>
at System.Func`4:invoke_TResult_T1_T2_T3 <0x000ae>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToNativeFont <0x000b4>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToNativeFont <0x0005c>
at Xamarin.Forms.Platform.iOS.FontExtensions:ToUIFont <0x0000a>
at Xamarin.Forms.Platform.iOS.ButtonRenderer:UpdateFont <0x00022>
at Xamarin.Forms.Platform.iOS.ButtonRenderer:OnElementChanged <0x00150>
at com.v2home.v2AppTool.iOS.Renderers.AppButtonRenderer:OnElementChanged <0x00012>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x002a2>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <
iOS.app/Xamarin.PreBuilt.iOS : ves_icall_InternalInvoke
0x10446b780 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : ves_icall_InternalInvoke_raw
0x10459db90 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x10459c2c4 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x1045931b8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104591748 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x1043fee70 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.
PreBuilt.iOS : mono_jit_runtime_invoke
0x1044ab984 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x1044b0bf8 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked
0x1043e3850 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_exec
0x10458f814 - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : xamarin_main
0x1043ab4cc - /private/var/containers/Bundle/Application/4A837479-2E23-4698-9E24-0A8CFB635F64/com.v2home.v2AppTool.iOS.app/Xamarin.PreBuilt.iOS : main
0x1a941ccf8 - /usr/lib/system/libdyld.dylib : <redacted>
=================================================================
Basic Fault Address Reporting
===
ateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:SetElement <0x00228>
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1:Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement <0x00010>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:OnChildAdded <0x00084>
at Xamarin.Forms.Platform.iOS.VisualElementPackager:Load <0x0005a>
at Xamari
006e>
at com.v2home.v2AppTool.iOS.AppDelegate:FinishedLaunching <0x0006e>
at <Module>:runtime_invoke_direct_bool__this___UIApplication_NSDictionary <0x000c8>
at <unknown> <0xffffffff>
at UIKit.UIApplication:UIApplicationMain <0x000b8>
at UIKit.UIApplication:Main <0x00054>
at com.v2home.v2AppTool.iOS.Application:Main <0x00012>
at <Module>:runtime_invoke_direct_void_string[] <0x00092>
at <unknown> <0xffffffff>
at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00030>
at System.Reflection.RuntimeMethodInfo:Invoke <0x000fc>
at System.Reflection.MethodBase:Invoke <0x0001a>
at Xamarin.iOS.HotRestart.Application:Run <0x001c8>
at Xamarin.PreBuilt.iOS.Applications:Main <0x0005a>
at <Module>:runtime_invoke_direct_void_string[] <0x00092>
=================================================================
n.Forms.Platform.iOS.PageRenderer:ViewDidLoad <0x0010c>
at System.Object:runtime_invoke_direct_void__this__ <0x0008e>
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:IntPtr_objc_msgSendSuper <0x0001a>
at UIKit.UIViewController:get_View <0x0006c>
at Xamarin.Forms.Platform.iOS.PageRenderer:get_NativeView <0x00016>
at Xamarin.Forms.Platform.iOS.PageRenderer:SetElement <0x00096>
at Xamarin.Forms.Platform.iOS.Platform:CreateRenderer <0x00080>
at Xamarin.Forms.Platform.iOS.Platform:AddChild <0x00052>
at Xamarin.Forms.Platform.iOS.Platform:WillAppear <0x00086>
at Xamarin.Forms.Platform.iOS.PlatformRenderer:ViewWillAppear <0x00040>
at <Module>:runtime_invoke_direct_void__this___bool <0x0009e>
at <unknown> <0xffffffff>
at ObjCRuntime.Messaging:void_objc_msgSend <0x0001a>
at UIKit.UIWindow:MakeKeyAndVisible <0x00038>
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate:SetMainPage <0x00022>
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate:FinishedLaunching <0x0
Update
The problem is the font reference in this class
[assembly: ExportFont("Orbitron-Bold.ttf", Alias = "OrbitronBold")]
namespace com.App.Controls
{
public class AppButton:Button
{
public AppButton()
{
}
}
}
When I comment the font reference everything works. What I've to understand now is what happened during the library update because the code is exactly the same as before.
Check my last comment

Related

iOS13 app generated from Xcode 11.3 is crashing while launching if I download and install from testflight.In simulator app is working fine

The iOS app is working fine when we download and install from testflight if I generate that app from Xcode 9.1 and MacOS 10.13.6(High Sierra)and uploaded to testflight.I have opened the same code from Xcode 11.3 on latest MacOS Catalina and generated iPA and uploaded to the testflight using proper distribution certificate. I was able to download and install app but app is crashing during app launch.
Please suggest me what could be the reason for this issue. I am adding some app crash logs from my iPhone.
{"app_name":"XXXX","app_cohort":"2|date=1586433600000&sf=143467&tid=e7af489f4214d36d52f2f775602345e93b2fd4cfcc690cd6ff09b0e7262ffdd7&ttype=i","app_version":"1.2.5","timestamp":"2020-04-09 17:59:31.50 +0530","slice_uuid":"45d30e88-5b71-32e7-854b-dcc2a43f5d99","adam_id":586832868,"build_version":"424","bundleID":"com.YYYY.XXXX","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.3.1 (17D50)","incident_id":"C379DDCD-83EA-49AC-A4B5-24E0316D0681","is_beta":true,"name":"XXXX"}
Incident Identifier: C379DDCD-83EA-49AC-A4B5-24E0316D0681
Beta Identifier: 5438D6EC-9706-4D7C-9DED-0259D2ECBE6A
Hardware Model: iPhone11,8
Process: XXXX [51890]
Path: /private/var/containers/Bundle/Application/E8C2C24C-087A-49B9-B78E-E6BC18A44EC2/XXXX.app/XXXX
Identifier: com.YYYY.XXXX
Version: 424 (1.2.5)
AppStoreTools: 11E146
AppVariant: 1:iPhone11,8:13
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.YYYY.XXXX [4881]
Date/Time: 2020-04-09 17:59:30.6770 +0530
Launch Time: 2020-04-09 17:59:30.4400 +0530
OS Version: iPhone OS 13.3.1 (17D50)
Release Type: User
Baseband Version: 2.04.03
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x8039c2a100000002 -> 0x0000002100000002 (possible pointer authentication failure)
VM Region Info: 0x2100000002 is not in any region. Bytes after previous region: 130459631619
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [51890]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_platform.dylib 0x00000001a6012798 0x1a600d000 + 22424
1 XXXX 0x00000001021e20d4 0x1020d4000 + 1106132
2 libobjc.A.dylib 0x00000001a602d3f8 0x1a601f000 + 58360
3 libdyld.dylib 0x00000001a6110168 0x1a6100000 + 65896
4 libdyld.dylib 0x00000001a61027e8 0x1a6100000 + 10216
5 libdyld.dylib 0x00000001a610fbf4 0x1a6100000 + 64500
6 libdyld.dylib 0x00000001a612aee4 0x1a6100000 + 175844
7 dyld 0x00000001024a4530 0x10249c000 + 34096
8 dyld 0x00000001024a298c 0x10249c000 + 27020
9 dyld 0x000000010249d22c 0x10249c000 + 4652
10 dyld 0x000000010249d038 0x10249c000 + 4152
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x8039c2a100000002 x1: 0x00000001022dab37 x2: 0x000000000000000a x3: 0xfffffffffffffffc
x4: 0x0000000000000052 x5: 0x0000000000000056 x6: 0x00000001e6b53848 x7: 0x00000000000004d0
x8: 0x000000028189c0c4 x9: 0x0000000000010000 x10: 0x0000000000000194 x11: 0x0000000000000001
x12: 0x0000000000000003 x13: 0x0000000000000000 x14: 0x00000000fffffffc x15: 0x0000000000000018
x16: 0x00000001a6012790 x17: 0x00000001eca7b3b0 x18: 0x0000000000000000 x19: 0x00000001022dab37
x20: 0x00000001022d7cd5 x21: 0x00000001022dab40 x22: 0x8039c2a100000002 x23: 0x0000000000000000
x24: 0x000000000000017f x25: 0x0000000000000000 x26: 0x0000000102329620 x27: 0x00000001022eb593
x28: 0x00000001ef76d4d8 fp: 0x000000016dd290f0 lr: 0x00000001021e20d4
sp: 0x000000016dd29090 pc: 0x00000001a6012798 cpsr: 0x00000000
esr: 0x92000004 (Data Abort) byte read Translation fault
Binary Images:
0x1020d4000 - 0x102307fff XXXX arm64 <45d30e885b7132e7854bdcc2a43f5d99> /var/containers/Bundle/Application/E8C2C24C-087A-49B9-B78E-E6BC18A44EC2/XXXX.app/XXXX
0x10249c000 - 0x102503fff dyld arm64e <e008b93875933f57b94a747bc6c3beb5> /usr/lib/dyld
0x1a5ee4000 - 0x1a5efafff libsystem_trace.dylib arm64e <1177e8a367aa3c8cb5605bcc40419d54> /usr/lib/system/libsystem_trace.dylib
0x1a5efb000 - 0x1a5f2efff libxpc.dylib arm64e <e2894301267b3872a3cd0aaf659353a9> /usr/lib/system/libxpc.dylib
0x1a5f2f000 - 0x1a5f2ffff libsystem_blocks.dylib arm64e <0fb3b7d281de30979e83b408b48e8b0e> /usr/lib/system/libsystem_blocks.dylib
0x1a5f30000 - 0x1a5faefff libsystem_c.dylib arm64e <8b9c0d18aeba3e24a95f2ec54f9fb4ef> /usr/lib/system/libsystem_c.dylib
0x1a5faf000 - 0x1a5febfff libdispatch.dylib arm64e <0c7a69cdf2ee3426bfd8742c903d3d07> /usr/lib/system/libdispatch.dylib
0x1a5fec000 - 0x1a600cfff libsystem_malloc.dylib arm64e <479f1b0225ee32ce8c0afaf20cd9e0c6> /usr/lib/system/libsystem_malloc.dylib
0x1a600d000 - 0x1a6013fff libsystem_platform.dylib arm64e <b07cc9f89c9f38b0bb974a77bf6a5db4> /usr/lib/system/libsystem_platform.dylib
0x1a6014000 - 0x1a601efff libsystem_pthread.dylib arm64e <637416f6a7a3339b96ed9ebc80d38988> /usr/lib/system/libsystem_pthread.dylib
0x1a601f000 - 0x1a604ffff libobjc.A.dylib arm64e <2c18c54e6c84310c851ff9602890d908> /usr/lib/libobjc.A.dylib
0x1a6050000 - 0x1a60bcfff libcorecrypto.dylib arm64e <9d52b5f81c483635ad32214f878e3e29> /usr/lib/system/libcorecrypto.dylib
0x1a60bd000 - 0x1a60d0fff libc++abi.dylib arm64e <b60e71f7dd75323c8831b1ca4d42e3cb> /usr/lib/libc++abi.dylib
0x1a60d1000 - 0x1a60fffff libsystem_kernel.dylib arm64e <ae36dce0999d39909eed01106f17dc90> /usr/lib/system/libsystem_kernel.dylib
0x1a6100000 - 0x1a6133fff libdyld.dylib arm64e <9d12204719b736a2a89227401f9e0e6c> /usr/lib/system/libdyld.dylib
0x1a6134000 - 0x1a613cfff libsystem_darwin.dylib arm64e <e2c1c480b2ec3bbea3fa4c70e4056c64> /usr/lib/system/libsystem_darwin.dylib
0x1a613d000 - 0x1a6197fff libc++.1.dylib arm64e <fff3d40d85a0308eac32908bca1188d0> /usr/lib/libc++.1.dylib
0x1a6198000 - 0x1a61d9fff libsystem_info.dylib arm64e <c2e15922d993340aaa5da454a57dfb76> /usr/lib/system/libsystem_info.dylib
0x1a61da000 - 0x1a6557fff CoreFoundation arm64e <dc2c95c6b95439e886a25e0af8801e87> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1a6558000 - 0x1a65befff SystemConfiguration arm64e <9e1b636801ac32da9dabce33f20ce872> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x1a65bf000 - 0x1a688afff Foundation arm64e <7a7a96af79e43db1890442e61cae8999> /System/Library/Frameworks/Foundation.framework/Foundation
0x1a688b000 - 0x1a68bdfff libCRFSuite.dylib arm64e <15ee962961303d46964ecd419e64345a> /usr/lib/libCRFSuite.dylib
0x1a68be000 - 0x1a6a41fff CoreServices arm64e <9298be2d0bd93660bddcf43d32ea3872> /System/Library/Frameworks/CoreServices.framework/CoreServices
0x1a6a42000 - 0x1a6aa4fff libSparse.dylib arm64e <797932fbc17f372bbd2cb9bc2d55cac1> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparse.dylib
0x1a6aa5000 - 0x1a6f9efff ImageIO arm64e <b301e385830f311ebce0e786df524e8e> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x1a6f9f000 - 0x1a6fa1fff ConstantClasses arm64e <96b656dd09a03e82b9c2917ab36a3fdd> /System/Library/PrivateFrameworks/ConstantClasses.framework/ConstantClasses
I have fixed this crash by renaming RKResponse class name of Restkit framework by adding some prefix to it. So that it will not conflict with RKResponseKit framework class RKResponse

google play games authentication with firebase not working on Unity

I've followed the official instructions https://firebase.google.com/docs/auth/unity/play-games to configure the google play games authentication with firebase on Unity, but unfortunately it isn't working. I think the authentication process is failing when it tries to request the auth ID from play games.
Here the log from logcat:
12-08 16:27:12.665 2665 2695 I Unity : GPGClient:Start()
12-08 16:27:12.665 2665 2695 I Unity :
12-08 16:27:12.665 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:12.665 2665 2695 I Unity :
12-08 16:27:18.980 2665 2695 I Unity : authcode
12-08 16:27:18.980 2665 2695 I Unity : GPGClient:SignIn()
12-08 16:27:18.980 2665 2695 I Unity :
12-08 16:27:18.980 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:18.980 2665 2695 I Unity :
12-08 16:27:18.990 2665 2695 I Unity : punto0
12-08 16:27:18.990 2665 2695 I Unity : GPGClient:SignIn()
12-08 16:27:18.990 2665 2695 I Unity :
12-08 16:27:19.003 2665 2695 I Unity : Starting Auth with token client.
12-08 16:27:19.003 2665 2695 I Unity : GooglePlayGames.Android.AndroidClient:Authenticate(Action`2, Boolean)
12-08 16:27:19.003 2665 2695 I Unity : GPGClient:SignIn()
12-08 16:27:19.003 2665 2695 I Unity :
12-08 16:27:19.010 2665 2695 I Unity : punto1
12-08 16:27:19.343 2665 2695 W Unity : !!! [Play Games Plugin DLL] 12/08/19 16:27:19 +01:00 WARNING: Creating new PlayGamesPlatform
12-08 16:27:19.343 2665 2695 W Unity : System.Action:Invoke()
12-08 16:27:19.343 2665 2695 W Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:19.343 2665 2695 W Unity :
12-08 16:27:19.343 2665 2695 W Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:19.343 2665 2695 W Unity :
12-08 16:27:19.345 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:19 +01:00 DEBUG: Activating PlayGamesPlatform.
12-08 16:27:19.345 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:19.345 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:19.345 2665 2695 I Unity :
12-08 16:27:19.345 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:19.345 2665 2695 I Unity :
12-08 16:27:19.347 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:19 +01:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
12-08 16:27:19.347 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:19.347 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:19.347 2665 2695 I Unity :
12-08 16:27:19.347 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:19.347 2665 2695 I Unity :
12-08 16:27:19.349 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:19 +01:00 DEBUG: Creating platform-specific Play Games client.
12-08 16:27:19.349 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:19.349 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:19.349 2665 2695 I Unity :
12-08 16:27:19.349 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:19.349 2665 2695 I Unity :
12-08 16:27:19.351 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:19 +01:00 DEBUG: Creating Android IPlayGamesClient Client
12-08 16:27:19.351 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:19.351 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:19.351 2665 2695 I Unity :
12-08 16:27:19.351 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:19.351 2665 2695 I Unity :
12-08 16:27:35.648 2665 2695 I Unity : authentication message Authentication canceled
12-08 16:27:35.648 2665 2695 I Unity : GPGClient:<SignIn>b__4_0(Boolean, String)
12-08 16:27:35.648 2665 2695 I Unity : System.Action`2:Invoke(T1, T2)
12-08 16:27:35.648 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:35.648 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:35.648 2665 2695 I Unity :
12-08 16:27:35.648 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:35.648 2665 2695 I Unity :
12-08 16:27:35.652 2665 2695 I Unity : not yet autenticated
12-08 16:27:35.652 2665 2695 I Unity : System.Action`2:Invoke(T1, T2)
12-08 16:27:35.652 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:35.652 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:35.652 2665 2695 I Unity :
12-08 16:27:35.652 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:35.652 2665 2695 I Unity :
12-08 16:27:35.654 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:35 +01:00 DEBUG: Authentication canceled
12-08 16:27:35.654 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:35.654 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:35.654 2665 2695 I Unity :
12-08 16:27:35.654 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:35.654 2665 2695 I Unity :
12-08 16:27:35.672 2665 2695 I Unity : [Play Games Plugin DLL] 12/08/19 16:27:35 +01:00 DEBUG: Invoking user callback on game thread
12-08 16:27:35.672 2665 2695 I Unity : System.Action:Invoke()
12-08 16:27:35.672 2665 2695 I Unity : GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
12-08 16:27:35.672 2665 2695 I Unity :
12-08 16:27:35.672 2665 2695 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
12-08 16:27:35.672 2665 2695 I Unity :
And here the code:
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using Firebase.Auth;
public class GPGClient : MonoBehaviour
{
private string authCode;
private FirebaseAuth auth;
public Text UserID;
private void Start()
{
Debug.Log("start");
UserID.text = "user";
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
.RequestServerAuthCode(false /* Don't force refresh */)
// requests an ID token be generated. This OAuth token can be used to
// identify the player to other services such as Firebase.
.RequestIdToken()
.Build();
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.Activate();
}
public void SignIn()
{
authCode = PlayGamesPlatform.Instance.GetServerAuthCode();
Debug.Log("authcode " + authCode);
Debug.Log("punt
{
authCode = PlayGamesPlatform.Instance.GetServerAuthCode();
Debug.Log("authcode " + authCode);
Debug.Log("punto0");
// Google Play Games authentication.
Social.localUser.Authenticate((success, message) =>
{
Debug.Log("authentication message " + message);
if (success)
{
//authCode = PlayGamesPlatform.Instance.GetServerAuthCode();
Debug.Log("autenticated");
GoOnSignIn();
}
else
Debug.Log("not yet autenticated");
});
Debug.Log("punto1");
}
private void GoOnSignIn()
{
Debug.Log("punto1.1");
// Firebase authentication.
auth = FirebaseAuth.DefaultInstance;
Credential credential =
PlayGamesAuthProvider.GetCredential(authCode);
Debug.Log("punto1.2");
auth.SignInWithCredentialAsync(credential).ContinueWith(task =>
{
Debug.Log("punto2");
if (task.IsCanceled)
{
Debug.Log("punto2cancel");
UserID.text = "SignInWithCredentialAsync was canceled.";
return;
}
if (task.IsFaulted)
{
Debug.Log("punto2fault");
UserID.text = "SignInWithCredentialAsync encountered an error: " + task.Exception;
return;
}
Debug.Log("punto3");
FirebaseUser newUser = task.Result;
UserID.text = "User signed in successfully: {0} ({1})" +
newUser.DisplayName + newUser.UserId;
});
CreateUser();
}
Hope that someone can help me! Thank you!

condition 'klass' not met when loading my page

When I start my app on iPhone with a synchronized mac with visual studio 2019, I get the error :
error: * Assertion at ../../../../../mono/metadata/class-init.c:4109, condition `klass' not met
I assume it is related to my page because it crashes at the MainPage = new myPage(); in App.cs.
I can add the whole error print if required.
Any help ?
Edit : a few more informations about the code :
The page's constructor does the following :
InitializeComponent();
A database call using WebRequest, StreamWriter, WebResponse
Uses JObject to parse the anwser and update some Label
Add Grid to my Layout : The Grid is using :
AbsoluteLayout, StackLayout, Frame, TapGestureRecognizer, Image, Button, Label
The xaml :
<ContentPage.Content>
<StackLayout x:Name="stackMainWrapper"
BackgroundColor="White">
<StackLayout x:Name="stackPageHeader"
Padding="20,10,20,0" >
<StackLayout x:Name="stackHeaderNavigation"
Orientation="Horizontal">
<myApp:SvgIcon x:Name="svgBtnUser"
ResourceId="myApp.assets.icons.svg.menu.svg"
WidthRequest="25"
Margin="0,0,10,0"
VerticalOptions="Center">
<myApp:SvgIcon.GestureRecognizers>
<TapGestureRecognizer Tapped="GoToMenu" />
</myApp:SvgIcon.GestureRecognizers>
</myApp:SvgIcon>
<Label x:Name="labelPageName"
Text=""
Style="{StaticResource TitleLabelStyle}"
VerticalOptions="Center" />
<Button x:Name="btncreate"
Text=""
Style="{StaticResource ButtonRegularBlue}"
Margin="0,10"
Clicked=""
HorizontalOptions="EndAndExpand"/>
<myApp:SvgIcon x:Name="svgBtnFilterResults"
ResourceId="myApp.assets.icons.svg.search.svg"
WidthRequest="25"
Margin="10,0,0,0"
CornerRadius="50"
Padding="10,0"
IsVisible="False"
BackgroundColor="{StaticResource LightGreyStyled}"
HorizontalOptions="End"
VerticalOptions="Center">
<myApp:SvgIcon.GestureRecognizers>
<TapGestureRecognizer
Tapped="BtnFilterResults_Clicked" />
</myApp:SvgIcon.GestureRecognizers>
</myApp:SvgIcon>
</StackLayout>
</StackLayout>
<controls:ShadowLine />
<ScrollView x:Name="scrollPageBody"
Margin="0">
<StackLayout x:Name="PageBody"
Padding="20" >
<Label x:Name=""
Text=""
Style="{StaticResource RegularLabelStyle}"
HorizontalTextAlignment="Center"
Margin="0,0,0,20"/>
</StackLayout>
</ScrollView>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Edit : Adding the exception trace :
2019-06-13 11:25:52.743 myapp.iOS[682:181626] error: * Assertion at
../../../../../mono/metadata/class-init.c:4109, condition `klass' not
met
================================================================= Native Crash Reporting
================================================================= 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.
================================================================= Basic Fault Adddress Reporting
================================================================= Memory around native instruction pointer (0x1d3bb20dc):0x1d3bb20cc fd
7b c1 a8 c0 03 5f d6 10 29 80 d2 01 10 00 d4 .{...._..)......
0x1d3bb20dc c3 00 00 54 fd 7b bf a9 fd 03 00 91 55 d6 ff 97
...T.{......U...
0x1d3bb20ec bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 90 29 80 d2
.....{.. .._..).. 0x1d3bb20fc 01 10 00 d4 c3 00 00 54 fd 7b bf a9 fd
03 00 91 .......T.{.... ..
================================================================= Native stacktrace:
================================================================= 0x1005752fc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x10056bc1c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x1d3c259ec - /usr/lib/system/libsystem_platform.dylib :
0x1d3c2b094 - /usr/lib/system/libsystem_pthread.dylib :
0x1d3b0bea8 - /usr/lib/system/libsystem_c.dylib : abort
0x1006f1c7c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_find_protocol_wrapper_type 0x1006d2018 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x1006d20a4 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x1005adc78 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x100713638 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_ L'exécution de l'application est terminée.
localized_string_format_9 0x100710edc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100702b78 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100706ad8 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100706ad8 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100701e50 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10057c294 -
/var/containers/Bundle/Applic
ation/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS :
mono_pmip 0x10061794c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10061af84 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10047904c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x100479844 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x2007d0594 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
Échec de l'arrêt de l'application : An error occurred on
client IDB1610517 while executing a reply for topic
xvs/idb/16.1.0.517/stop-app 0x2007d5d20 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2000992dc -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
L'exécution de l'application est terminée. 0x2000a1874 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200098f60 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200099850 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200097b9c -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x200097864 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x20009c3a4 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x20009d188 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
_performActionsWithDelayForTransitionContext 0x20009c25c - /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2007cee30 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2000a0f5c -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2007d4328 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x2003d0ba8 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
0x1d69909fc -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d699a40c -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d6999c14 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d3a557d4 - /usr/lib/system/libdispatch.dylib :
0x1d39fa5d8 - /usr/lib/system/libdispatch.dylib :
0x1d69cb040 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d69cacdc -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d69cb294 -
/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
: 0x1d3fa7018 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa6f98 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa6880 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa17bc -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1d3fa10b0 -
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
CFRunLoopRunSpecific 0x1d61a179c -
/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
: GSEventRunModal 0x2007d7978 -
/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore :
UIApplicationMain 0x10071128c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10070343c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100703a80 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x100701e50 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10057c294 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x10061794c -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/enVisit
4> at <0xffffffff> at
UIKit.UIApplication:UIApplicationMain <0x000bc> at
UIKit.UIApplication:Main <0x0002a> at UIKit.UIApplication:Main
<0x0006a> at myapp.iOS.Application:Main <0x00016> at
:runtime_invoke_direct_void_string[] <0x00082>
================================================================= e360.iOS.app/myapp.iOS : mono_pmip 0x10061cf68 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: mono_pmip 0x100560c64 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x100700be0 -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: xamarin_localized_string_format_9 0x10052adfc -
/var/containers/Bundle/Application/B332FB94-B5DA-4627-8D03-5471B0CE66FC/myapp.iOS.app/myapp.iOS
: (null) 0x1d3a668e0 - /usr/lib/system/libdyld.dylib :
================================================================= Managed Stacktrace:
================================================================= at <0xffffffff> at myapp.App:.ctor <0x0002c> at
myapp.iOS.AppDelegate:FinishedLaunching <0x0006e> at
:runtime_invoke_direct_bool__this___UIApplication_NSDictionary
<0x000b
I managed to take apart the crashing code, and by uncommenting line after line to see what is breaking, apparently, using dynamic on Xamarin iOS make the app crash.
So well.. avoid using dynamic I guess...
You must initialize the page before assigning to mainPage.
MainPage = new myPage();

Error installing QtLocation

So I'm trying to install QtLocation.
I created the qt5vars.cmd in C:\QT exactly with the text stated.
This is my error:
C:\QT\QT5>REM Set up \Microsoft Visual Studio 2013, where <arch> is \c
amd64, \c x86, etc.
The syntax of the command is incorrect.
C:\QT\QT5>CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\
vcvarsall.bat" <arch>
C:\QT\QT5>configure -debug -nomake examples -opensource
'configure' is not recognized as an internal or external command,
operable program or batch file.
C:\QT\QT5>
Can anyone point me to the problem? I just installed Microsoft Visual studio and it is located in
C:\Program Files (x86)\Microsoft Visual Studio 12.0
Edit: Found out that the problem was that I needed to add x86, besides only the complete backage consists of the make and configure so therefor I downloaded the complete package.
Now I have a new error
moc_qqmlenginedebugservice_p.cpp
moc_qdebugmessageservice_p.cpp
moc_qv4debugservice_p.cpp
moc_qqmlconfigurabledebugservice_p.cpp
moc_qqmlabstractprofileradapter_p.cpp
moc_qv4profileradapter_p.cpp
moc_qqmlprofiler_p.cpp
moc_qabstractanimationjob_p.cpp
moc_qqmlbind_p.cpp
moc_qqmlconnections_p.cpp
moc_qqmldelegatemodel_p.cpp
moc_qqmldelegatemodel_p_p.cpp
moc_qqmllistmodel_p.cpp
moc_qqmllistmodel_p_p.cpp
moc_qqmllistmodelworkeragent_p.cpp
moc_qqmlobjectmodel_p.cpp
moc_qqmltimer_p.cpp
moc_qquickpackage_p.cpp
moc_qquickworkerscript_p.cpp
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x66000000 /DEBUG /DLL /SUBSYS
TEM:WINDOWS /VERSION:5.40 /MANIFEST:embed /OUT:C:\TUecomotive\QT5\qt-everywhere-
opensource-src-5.4.0\qtbase\lib\Qt5Qmld.dll #C:\Users\s130031\AppData\Local\Temp
\nm9C7.tmp
Creating library C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.0\qtbase
\lib\Qt5Qmld.lib and object C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.
0\qtbase\lib\Qt5Qmld.exp
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::newlineCharacterClass(voi
d)" (?newlineCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate#Yarr#JSC
##YAPAUCharacterClass#12#XZ)
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate#Ya
rr#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Y
arr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::wordcharCharacterClass(
void)" (?wordcharCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate#Yarr#J
SC##YAPAUCharacterClass#12#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::digitsCreate(void)" (?digitsCreate#Yarr#JSC##
YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::digitsCharacterClass(void)" (?d
igitsCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::spacesCreate(void)" (?spacesCreate#Yarr#JSC##
YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::spacesCharacterClass(void)" (?s
pacesCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nondigitsCreate(void)" (?nondigitsCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nondigitsCharacterClass(v
oid)" (?nondigitsCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonspacesCreate(void)" (?nonspacesCreate#Yarr
#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonspacesCharacterClass(v
oid)" (?nonspacesCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterClass#23#XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonwordcharCreate(void)" (?nonwordcharCreate#
Yarr#JSC##YAPAUCharacterClass#12#XZ) referenced in function "public: struct JSC:
:Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonwordcharCharacterC
lass(void)" (?nonwordcharCharacterClass#YarrPattern#Yarr#JSC##QAEPAUCharacterCla
ss#23#XZ)
C:\TUecomotive\QT5\qt-everywhere-opensource-src-5.4.0\qtbase\lib\Qt5Qmld.dll : f
atal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\QT\QT5\qt-everywhere-opensource-src-5.4.0>
I had the same problem. I found the answer here Build Qt 5.4 in windows: use VS2010 and here Unresolved external symbol attempting to build 5.2.
To solve this problem:
Check the file QT_HOME\qtdeclarative\src\qml\RegExpJitTables.h is empty or not. If it is empty, delete it. (In later versions the file is situated in each of the subdirectories of QT_HOME\qtdeclarative\src\qml\.generated\ directory.)
make sure that python is in your PATH
nmake
It works for me.

Using leptonica with qt 5.2.0 (vs2012) issues

I'm trying to get the Leptonica 1.68 to work with Qt 5.2.0 (vs2012) static libraries. So i decided to try out the static libraries first, i downloaded the following package leptonica-1.68-win32-lib-include-dirs.zip
And iclude it in my project like so:
LIBS += -L$$PWD\leptonica-1.68-win32-lib-include-dirs\lib -lliblept168-static-mtdll -lgiflib416-static-mtdll
I also use the opencv that i build myself using vc2012+cmake
LIBS += -L$$PWD\opencv\static_libs -llibjpegd -llibpngd -llibtiffd -lIlmImfd -llibjasperd -lopencv_calib3d246d -lopencv_contrib246d -lopencv_core246d -lopencv_features2d246d -lopencv_flann246d -lopencv_gpu246d -lopencv_highgui246d -lopencv_imgproc246d -lopencv_legacy246d -lopencv_ml246d -lopencv_nonfree246d -lopencv_objdetect246d -lopencv_photo246d -lopencv_stitching246d -lopencv_superres246d -lopencv_ts246d -lzlibd
Opencv is built with /MTd and leptonica is built with /MTd too (i assume it from the library name "static-mtdll")
My qt is built with the following configuration:
configure -static -debug-and-release -opensource -confirm-license -platform win
32-msvc2012 -mp -qt-sql-sqlite -plugin-sql-mysql -I C:\MYSQL\include -L C:\QT\lib -c++11 -no-opengl
-nomake tests -nomake examples -no-crt -qt-zlib -qt-libpng -qt-libjpeg
When i'm trying to build my application i get
Qt5Cored.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in zlibd.lib(zutil.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _calloc already defined in LIBCMTD.lib(dbgcalloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fprintf already defined in LIBCMTD.lib(fprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: ___iob_func already defined in LIBCMTD.lib(_file.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _rand already defined in LIBCMTD.lib(rand.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __localtime64 already defined in LIBCMTD.lib(loctim64.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strchr already defined in LIBCMTD.lib(strchr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strstr already defined in LIBCMTD.lib(strstr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fseek already defined in LIBCMTD.lib(fseek.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _ftell already defined in LIBCMTD.lib(ftell.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _srand already defined in LIBCMTD.lib(rand.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __snprintf_s already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fread already defined in LIBCMTD.lib(fread.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strrchr already defined in LIBCMTD.lib(strrchr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _sscanf already defined in LIBCMTD.lib(sscanf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strftime already defined in LIBCMTD.lib(strftime.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fopen already defined in LIBCMTD.lib(fopen.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fwrite already defined in LIBCMTD.lib(fwrite.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _rewind already defined in LIBCMTD.lib(rewind.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _remove already defined in LIBCMTD.lib(unlink.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __lseek already defined in LIBCMTD.lib(lseek.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fputc already defined in LIBCMTD.lib(fputc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fgetc already defined in LIBCMTD.lib(fgetc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _longjmp already defined in LIBCMTD.lib(longjmp.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _atof already defined in LIBCMTD.lib(atof.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fgets already defined in LIBCMTD.lib(fgets.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _setvbuf already defined in LIBCMTD.lib(setvbuf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strncpy already defined in LIBCMTD.lib(strncpy.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgrealloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __isnan already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __fpclass already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _toupper already defined in LIBCMTD.lib(toupper.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __vsnprintf already defined in LIBCMTD.lib(vsnprint.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _vfprintf already defined in LIBCMTD.lib(vfprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __errno already defined in LIBCMTD.lib(dosmap.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __wopen already defined in LIBCMTD.lib(wopen.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fflush already defined in LIBCMTD.lib(fflush.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _floor already defined in LIBCMTD.lib(floor_pentium4.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info##AAE#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info##AAEAAV0#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __getpid already defined in LIBCMTD.lib(getpid.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __fileno already defined in LIBCMTD.lib(fileno.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __setmode already defined in LIBCMTD.lib(setmode.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __close already defined in LIBCMTD.lib(close.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __open already defined in LIBCMTD.lib(open.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __read already defined in LIBCMTD.lib(read.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __write already defined in LIBCMTD.lib(write.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __getcwd already defined in LIBCMTD.lib(getcwd.obj)
LIBCMTD.lib(wfopen.obj) : error LNK2005: __wfopen already defined in MSVCRT.lib(MSVCR110.dll)
Creating library debug\test.lib and object debug\test.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
fatal error LNK1169: one or more multiply defined symbols found
I tried to add /NODEFAULTLIBRARY:MSVCRT.LIB to my pro file but LIBCMTD errors still remain, and i get more warnings like this:
libxml2_a.lib(xmlmemory.obj) : warning LNK4217: locally defined symbol _malloc imported in function _xmlMallocBreakpoint
giflib416-static-mtdll.lib(gifalloc.obj) : warning LNK4049: locally defined symbol _malloc imported
giflib416-static-mtdll.lib(dgif_lib.obj) : warning LNK4217: locally defined symbol _malloc imported in function _DGifCloseFile
libxml2_a.lib(globals.obj) : warning LNK4049: locally defined symbol _malloc imported
libxml2_a.lib(threads.obj) : warning LNK4049: locally defined symbol _malloc imported
liblept168-static-mtdll.lib(pix1.obj) : warning LNK4217: locally defined symbol _malloc imported in function _pix_malloc
liblept168-static-mtdll.lib(jpegio.obj) : warning LNK4049: locally defined symbol _malloc imported
liblept168-static-mtdll.lib(fpix1.obj) : warning LNK4049: locally defined symbol _malloc imported
If i build that project dynamically using non-static qt version and opencv non-static libraries everything works just fine. (i guess that would be /MD). So i assume that leptonica is compiled with /MD and i need to recomplie it with /MTd (static debug). Please help, or maybe provide a faq or solution for building leptonica using vc2012.

Resources