-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR while running iOS Project **System.Reflection.TargetInvocationException:** 'Exception has been thrown by the target of an invocation.' on 32 bits devices #7084
Comments
Can you tell us the device type/model and iOS version used ? |
IPhone 5 @spouliot |
… .ctor Types that are new in 64bits only OS are generated differently on 32bits bindings. They mainly throw a `PlatformNotSupportedException` so it's easier to diagnose (than a crash) what's happening at runtime. This works well in all cases except one. When a new type, let's say `UIMenuElement` is added **and** serves as a new base type for existing types. `UIKeyCommand` (iOS 7) -> `UICommand` (iOS 13)-> `UIMenuElement` (iOS 13) This is _correct_ as new base types can be added (in ObjC and C#). However the generated code for the constructors of `UICommand` and `UIMenuElement` would be throwing a `PlatformNotSupportedException` which breaks the `UIKeyCommand` on 32 bits devices. We fixed this in a few places by tweaking the availability attribute but that requires spotting the new base type while doing bindings and that is error prone [1][2]. This PR simply does let the `protected` constructor, using when chaining, be generated normally. It's simpler and will cover all the cases (without requiring hacks in the availability of those types) [1] xamarin#7083 [2] xamarin#7084
Thanks, it's a 32bits device so this is a dupe of #7083 and we're already on it. Sorry for the trouble! |
… .ctor (#7085) Types that are new in 64bits only OS are generated differently on 32bits bindings. They mainly throw a `PlatformNotSupportedException` so it's easier to diagnose (than a crash) what's happening at runtime. This works well in all cases except one. When a new type, let's say `UIMenuElement` is added **and** serves as a new base type for existing types. `UIKeyCommand` (iOS 7) -> `UICommand` (iOS 13)-> `UIMenuElement` (iOS 13) This is _correct_ as new base types can be added (in ObjC and C#). However the generated code for the constructors of `UICommand` and `UIMenuElement` would be throwing a `PlatformNotSupportedException` which breaks the `UIKeyCommand` on 32 bits devices. We fixed this in a few places by tweaking the availability attribute but that requires spotting the new base type while doing bindings and that is error prone [1][2]. This PR simply does let the `protected` constructor, using when chaining, be generated normally. It's simpler and will cover all the cases (without requiring hacks in the availability of those types) [1] #7083 [2] #7084
… .ctor Types that are new in 64bits only OS are generated differently on 32bits bindings. They mainly throw a `PlatformNotSupportedException` so it's easier to diagnose (than a crash) what's happening at runtime. This works well in all cases except one. When a new type, let's say `UIMenuElement` is added **and** serves as a new base type for existing types. `UIKeyCommand` (iOS 7) -> `UICommand` (iOS 13)-> `UIMenuElement` (iOS 13) This is _correct_ as new base types can be added (in ObjC and C#). However the generated code for the constructors of `UICommand` and `UIMenuElement` would be throwing a `PlatformNotSupportedException` which breaks the `UIKeyCommand` on 32 bits devices. We fixed this in a few places by tweaking the availability attribute but that requires spotting the new base type while doing bindings and that is error prone [1][2]. This PR simply does let the `protected` constructor, using when chaining, be generated normally. It's simpler and will cover all the cases (without requiring hacks in the availability of those types) [1] xamarin#7083 [2] xamarin#7084
Using lastest xcode 11 and seeing the same issue on my ipad running iOS 10.3.3. Works fine on an iphone running iOS 12. **System.PlatformNotSupportedException:** 'Loading...'
**System.Reflection.TargetInvocationException:** 'Loading...'
Thread finished: <Thread Pool> #4
Thread finished: <Thread Pool> #3
Thread finished: <Thread Pool> #6
Thread finished: <Thread Pool> #5
Thread started: <Thread Pool> #7
Thread started: <Thread Pool> #8
Thread started: <Thread Pool> #9
**System.Reflection.TargetInvocationException:** 'Exception has been thrown by the target of an invocation.'
Loaded assembly: /private/var/containers/Bundle/Application/7E272C48-DC23-45CC-836D-40313A0F71B8/MyApp.iOS.app/Microsoft.AppCenter.Distribute.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/7E272C48-DC23-45CC-836D-40313A0F71B8/MyApp.iOS.app/Microsoft.AppCenter.Crashes.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/7E272C48-DC23-45CC-836D-40313A0F71B8/MyApp.iOS.app/Microsoft.AppCenter.Analytics.dll [External]
[PLCrashReport] MSplcrash_log_writer_init
:352: Could not retreive parent process name: Operation not permitted
2019-09-25 09:00:01.646 MyApp.iOS[432:67551] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2019-09-25 09:00:01.700 MyApp.iOS[432:67551] [AppCenterDistribute] ERROR: -[MSDistribute buildTokenRequestURLWithAppSecret:releaseHash:isTesterApp:]/487 Custom URL scheme for Distribute not found.
2019-09-25 09:00:01.701 MyApp.iOS[432:67551] [AppCenterDistribute] ERROR: -[MSDistribute buildTokenRequestURLWithAppSecret:releaseHash:isTesterApp:]/487 Custom URL scheme for Distribute not found.
2019-09-25 09:00:01.720 MyApp.iOS[432:67551] [AppCenter] WARNING: -[MSAuthTokenContext authTokenHistory]/210 Failed to retrieve history state or none was found.
2019-09-25 09:00:01.720 MyApp.iOS[432:67551] [AppCenter] WARNING: -[MSAuthTokenContext setAuthTokenHistory:]/225 Failed to save new history state.
**System.Reflection.TargetInvocationException:** 'Exception has been thrown by the target of an invocation.'
Thread started: #10
2019-09-25 09:00:03.420 MyApp.iOS[432:68196] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2019-09-25 09:00:03.477 MyApp.iOS[432:68196] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2019-09-25 09:00:05.216 MyApp.iOS[432:67551] [AppCenterCrashes] ERROR: +[MSWrapperLogger MSWrapperLog:tag:level:]/10 Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.PlatformNotSupportedException: This API is not supported on this version of iOS
at UIKit.UIMenuElement..ctor (System.IntPtr handle) [0x00007] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIMenuElement.g.cs:91
at UIKit.UICommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UICommand.g.cs:88
at UIKit.UIKeyCommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:91
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.Ru
ntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00018] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:944
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeConstructorInfo.Inv
oke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:960
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x0003b] in <1b20576ce73640d782f136af13e79af3>:0
at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) [0x000d1] in <1b20576ce73640d782f136af13e79af3>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action) [0x0003b] in /Library/Framew
orks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:107
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement]..ctor () [0x00043] in <8ab4f89e485a4518bb739eb92c77aff4>:0
at Xamarin.Forms.Platform.iOS.Platform+DefaultRenderer..ctor () <0x1959364 + 0x0004f> in <8ab4f89e485a4518bb739eb92c77aff4#9e90e0b06c132b86bc6aa3e3864e775e>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00000] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:187
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003e] in d:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:99
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in d:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:48
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0008f] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:238
at (wrapper managed-to-native
) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIViewController.g.cs:3171
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00000] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:104
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0003d] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:120
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:188
at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:358
at Xamarin.Forms.Platform.iOS.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page page, System.Boolean animated) [0x0001d] in d:\a\1\
s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:345
at Xamarin.Forms.Platform.iOS.NavigationRenderer.<ViewDidLoad>b__46_0 (Xamarin.Forms.Page p) [0x00024] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:238
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/Foundation/NSAction.cs:178
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 /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIAppli
cation.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at MyApp.iOS.Application.Main (System.String[] args) [0x00001] in C:\Users\Admin\Apps\MyApp\MyApp\MyApp.iOS\Main.cs:18
2019-09-25 09:00:05.322 MyApp.iOS[432:67551] Unhandled managed exception: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00018] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:944
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globaliz
The app has been terminated.ation.CultureInfo culture) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:960
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x0003b] in <1b20576ce73640d782f136af13e79af3>:0
at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) [0x000d1] in <1b20576ce73640d782f136af13e79af3>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action) [0x0003b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:107
at Xamarin.Forms.Platform.iOS.VisualE
lementRenderer`1[TElement]..ctor () [0x00043] in <8ab4f89e485a4518bb739eb92c77aff4>:0
at Xamarin.Forms.Platform.iOS.Platform+DefaultRenderer..ctor () <0x1959364 + 0x0004f> in <8ab4f89e485a4518bb739eb92c77aff4#9e90e0b06c132b86bc6aa3e3864e775e>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00000] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:187
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003e] in d:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:99
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in d:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:48
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0008f] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:238
at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () [0x0002a] in /Librar
Failed to Stop app: An error occurred on client IDB1630274 while executing a reply for topic xvs/idb/16.3.0.274/stop-app
y/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIViewController.g.cs:3171
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00000] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:104
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0003d] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:120
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:188
at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:358
at Xamarin.Forms.Platform.iOS.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page page, System.Boolean animated) [0x0001d] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:345
at Xamarin.Forms.Platform.iOS.NavigationRenderer.<ViewDi
The app has been terminated.dLoad>b__46_0 (Xamarin.Forms.Page p) [0x00024] in d:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:238
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/Foundation/NSAction.cs:178
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 /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateC
lassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at MyApp.iOS.Application.Main (System.String[] args) [0x00001] in C:\Users\Admin\Apps\MyApp\MyApp\MyApp.iOS\Main.cs:18
--- inner exception ---
This API is not supported on this version of iOS (System.PlatformNotSupportedException)
at UIKit.UIMenuElement..ctor (System.IntPtr handle) [0x00007] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIMenuElement.g.cs:91
at UIKit.UICommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UICommand.g.cs:88
at UIKit.UIKeyCommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:91
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstruct
orInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936 |
… chaining .ctor (#7092) Types that are new in 64bits only OS are generated differently on 32bits bindings. They mainly throw a `PlatformNotSupportedException` so it's easier to diagnose (than a crash) what's happening at runtime. This works well in all cases except one. When a new type, let's say `UIMenuElement` is added **and** serves as a new base type for existing types. `UIKeyCommand` (iOS 7) -> `UICommand` (iOS 13)-> `UIMenuElement` (iOS 13) This is _correct_ as new base types can be added (in ObjC and C#). However the generated code for the constructors of `UICommand` and `UIMenuElement` would be throwing a `PlatformNotSupportedException` which breaks the `UIKeyCommand` on 32 bits devices. We fixed this in a few places by tweaking the availability attribute but that requires spotting the new base type while doing bindings and that is error prone [1][2]. This PR simply does let the `protected` constructor, using when chaining, be generated normally. It's simpler and will cover all the cases (without requiring hacks in the availability of those types) [1] #7083 [2] #7084
The crash happens only on 32bits devices (or if you're building 32bits only on a old version of iOS that supports 32/64bits). Xamarin.Forms itself hits the issue when it calls At the moment the fix is only available of our upcoming Xcode11.1 branch. You can get a package directly from our bots here: https://bosstoragemirror.blob.core.windows.net/wrench/jenkins/xcode11.1/6bdce2dac8a3c3946c4e464af5e8355360d79dfc/12/package/notarized/xamarin.ios-13.3.0.6.pkg This has not gone thru any formal tests, beside automated ones, but the branch is still very similar to the stable release. Notes
|
I had the same error when I used Xamarin.HotReload, this error was solved by removing the line that starts the HotReloader :( . I will try updating XCode to solve the error. |
Why is this not a priority to be fixed? Basically screws everyone that has any apps targeting older iOS versions. |
@Foxsterc work around for now would be to use VS 2019 community preview as Xamarin.iOS is abit older and unaffected - we are using this for now, also latest VS 2019 community 16.3.3 update that includes Xamarin.iOS 13.2.0.47 did not resolve the issue :( |
I too just found out that 13.2.0.47 did not resolve it. @spouliot Is there any time frame when this will be released? Thanks |
@AntRemo: an update (with support for Xcode 11.1) is in progress, and should be out later this week (the version number will be 13.4.0.). The update contains the fix for this bug. |
@LeoJHarris Unfortunately, using the preview version is more trouble than it's worth. I have issues with random hangs etc on iOS using that version. iOS, on Xamarin, is one of the most painful experiences I've ever come across whereas Xamarin Android usually is without issue. 15 days ago, this was first reported, and still no fix; that's what I find hard to understand. |
Hi everyone, we just released Xamarin.iOS 13.4 to stable. Here are the release notes mention the regression fix specifically: https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.4 |
We've just installed the updates (on mac and windows) and I can confirm that this has solved the issue (at least for us). |
I can also confirm that the update 13.4 fixed the issue. Our App was previously crashing with a PlatformNotSupportedException on iPhone 5. |
Nope very hit and miss for me with 95% failure. An app that previously ran fine I can't even debug it! Not sure if this is related or not? `=================================================================
|
@Foxsterc does it still happen after you've upgraded to Xamarin.iOS 13.4? If it still occurs, it's not the same bug, in which case it's best to open a new issue about it. |
@rolfbjarne Yes, Xamarin.iOS 13.4 Ok, I will thanks. |
… .ctor (xamarin#7085) Types that are new in 64bits only OS are generated differently on 32bits bindings. They mainly throw a `PlatformNotSupportedException` so it's easier to diagnose (than a crash) what's happening at runtime. This works well in all cases except one. When a new type, let's say `UIMenuElement` is added **and** serves as a new base type for existing types. `UIKeyCommand` (iOS 7) -> `UICommand` (iOS 13)-> `UIMenuElement` (iOS 13) This is _correct_ as new base types can be added (in ObjC and C#). However the generated code for the constructors of `UICommand` and `UIMenuElement` would be throwing a `PlatformNotSupportedException` which breaks the `UIKeyCommand` on 32 bits devices. We fixed this in a few places by tweaking the availability attribute but that requires spotting the new base type while doing bindings and that is error prone [1][2]. This PR simply does let the `protected` constructor, using when chaining, be generated normally. It's simpler and will cover all the cases (without requiring hacks in the availability of those types) [1] xamarin#7083 [2] xamarin#7084
Steps to Reproduce
Expected Behavior
Actual Behavior
Return the following error.
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
Environment
Microsoft Visual Studio Community 2019
Version 16.3.0
VisualStudio.16.Release/16.3.0+29318.209
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Community
Application Insights Tools for Visual Studio Package 9.1.00913.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2019 16.3.282.33872
ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2019 16.3.282.33872
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.3.282.33872
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 16.3.282.33872
Azure Functions and Web Jobs Tools
C# Tools 3.3.1-beta3-19461-02+2fd12c210e22f7d6245805c60340f6a34af6875b
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 0x10 - v2.9.20816.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.0.83+gbc8a4b23ec
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Mono Debugging for Visual Studio 16.3.7 (9d260c5)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 5.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.61908.27190
Microsoft SQL Server Data Tools
TypeScript Tools 16.0.10821.2002
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.3.1-beta3-19461-02+2fd12c210e22f7d6245805c60340f6a34af6875b
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.4 for F# 4.6 16.3.0-beta.19455.1+0422ff293bb2cc722fe5021b85ef50378a9af823
Microsoft Visual F# Tools 10.4 for F# 4.6
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 16.3.0.274 (d16-3@06531f8)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 16.3.0.230 (remotes/origin/d16-3-xcode11@bbe518670)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 16.3.565 (27e9746)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 10.0.0.43 (d16-3/8af1ca8)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: mono/mono@7af64d1ebe9
Java.Interop: xamarin/java.interop/d16-3@5836f58
LibZipSharp: grendello/LibZipSharp/d16-3@71f4a94
LibZip: nih-at/libzip@b95cf3f
ProGuard: xamarin/proguard@905836d
SQLite: xamarin/sqlite@8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-3@cb41333
Xamarin.iOS and Xamarin.Mac SDK 13.2.0.42 (5e8a208)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Build Logs
2019-09-24 18:21:21.434 App1.iOS[487:159803]
Unhandled Exception:
0 App1.iOS 0x01486943 App1.iOS + 21477699
1 App1.iOS 0x01484bf7 App1.iOS + 21470199
2 App1.iOS 0x01484387 App1.iOS + 21468039
3 App1.iOS 0x0147c787 App1.iOS + 21436295
4 App1.iOS 0x003d9618 App1.iOS + 3991064
at System.Reflection.RuntimeConstructorInfo.DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00086] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo
.cs:960
at System.Reflection.ConstructorInfo.Invoke (object[]) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at ObjCRuntime.Runtime.ConstructNSObject<T_REF> (intptr,System.Type,ObjCRuntime.Runtime/MissingCtorResolution) [0x0003b] in <1b20576ce73640d782f136af13e79af3#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at ObjCRuntime.Runtime.GetNSObject<T_REF> (intptr) [0x000d1] in <1b20576ce73640d782f136af13e79af3#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString,UIKit.UIKeyModifierFlags,ObjCRuntime.Selector) [0x0003b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:107
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1<TElement_REF>..ctor () [0x00043] in <f0489d3941b24a20a5b9223b572ec7c0#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at Xamarin.Forms.Platform.iOS.Platform/DefaultRenderer..ctor () [0x00001] in <f0489
d3941b24a20a5b9223b572ec7c0#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:187
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x00025] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:42
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0009a] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:237
at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) [0x00027] in <e9fc9f9aa3924b8ab178e9f9b7538a42#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
18 App1.iOS 0x01493747 mono_pmip + 23104
19 App1.iOS 0x0150a5e3 mono_pmip + 510172
20 App1.iOS 0x0150c
The app has been terminated.ecb mono_pmip + 520644
21 App1.iOS 0x0001064d App1.iOS + 22093
22 App1.iOS 0x0002a931 App1.iOS + 129329
23 UIKit 0x232bdeb7 + 966
24 UIKit 0x232bdad9 + 22
at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (intptr,intptr) [0x00013] in <1b20576ce73640d782f136af13e79af3#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIViewController.g.cs:3171
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:101
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:117
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement) [0x000
1b] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:189
at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:300
at Xamarin.Forms.Platform.iOS.Platform.WillAppear () [0x00048] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:288
at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewWillAppear (bool) [0x0001b] in D:\a\1\s\Xamarin.Forms.Platform.iOS\PlatformRenderer.cs:87
at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) [0x00027] in <e9fc9f9aa3924b8ab178e9f9b7538a42#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
34 App1.iOS 0x01493747 mono_pmip + 23104
35 App1.iOS 0x0150a5e3 mono_pmip + 510172
36 App1.iOS 0x0150cecb mono_pmip + 520644
37 App1.iOS 0x0001f257 App1.iOS + 82519
38 App1.iOS 0x0001f2c3 App1.iOS + 82627
39 UIKit 0x2
Failed to Stop app: An error occurred on client IDB1630274 while executing a reply for topic xvs/idb/16.3.0.274/stop-app
32d50ad + 392
40 UIKit 0x232d4eff + 140
41 UIKit 0x233370df + 452
42 UIKit 0x232c59d5 + 560
43 UIKit 0x232c4dad + 406
44 UIKit 0x232c4c03 + 730
45 UIKit 0x232c4211 + 510
46 UIKit 0x232c15bb + 286
47 UIKit 0x23331159 + 42
at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) [0x00013] in <1b20576ce73640d782f136af13e79af3#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at UIKit.UIWindow.MakeKeyAndVisible () [0x0001d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIWindow.g.cs:282
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.SetMainPage () [0x00011] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplication
The app has been terminated.
Delegate.cs:172
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.FinishedLaunching (UIKit.UIApplication,Foundation.NSDictionary) [0x00036] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplicationDelegate.cs:58
at App1.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication,Foundation.NSDictionary) [0x00013] in E:\Mobile apps samples\App1\App1.iOS\AppDelegate.cs:28
at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) [0x00027] in <e9fc9f9aa3924b8ab178e9f9b7538a42#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
54 App1.iOS 0x01493747 mono_pmip + 23104
55 App1.iOS 0x0150a5e3 mono_pmip + 510172
56 App1.iOS 0x0150cecb mono_pmip + 520644
57 App1.iOS 0x0000fc7f App1.iOS + 19583
58 App1.iOS 0x0001028b App1.iOS + 21131
59 UIKit 0x2332d5c5 + 376
60 UIKit 0x2352ea4b + 3
706
61 UIKit 0x23533c1d + 1640
62 UIKit 0x235467c5 + 40
63 UIKit 0x2353135b + 142
64 FrontBoardServices 0x1f96cc13 + 18
65 FrontBoardServices 0x1f96cacd + 220
66 FrontBoardServices 0x1f96cdb7 + 44
67 CoreFoundation 0x1e047fdd + 12
68 CoreFoundation 0x1e047b05 + 424
69 CoreFoundation 0x1e045f51 + 1160
70 CoreFoundation 0x1df991af CFRunLoopRunSpecific + 470
71 CoreFoundation 0x1df98fd1 CFRunLoopRunInMode + 104
72 UIKit 0x23326e2d + 660
73 UIKit 0x23321a53 UIApplicationMain + 150
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) [0x00060] in <1
b20576ce73640d782f136af13e79af3#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00011] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:87
at UIKit.UIApplication.Main (string[],string,string) [0x00016] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:66
at App1.iOS.Application.Main (string[]) [0x00001] in E:\Mobile apps samples\App1\App1.iOS\Main.cs:17
at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) [0x00027] in <e9fc9f9aa3924b8ab178e9f9b7538a42#9C3B417C-4683-F6B0-313E-0BA158FFC5F9>:0
79 App1.iOS 0x01493747 mono_pmip + 23104
80 App1.iOS 0x0150a5e3 mono_pmip + 510172
81 App1.iOS 0x0150e53f mono_pmip + 526392
82 App1.iOS 0x0147c4f9 App1.iOS + 21435641
83 App1.iOS 0x015a2f80 _Z9__is
ctypeim + 62068
84 App1.iOS 0x00034f3b App1.iOS + 171835
85 libdyld.dylib 0x1d7864eb + 2
2019-09-24 18:21:21.440 App1.iOS[487:159803] Unhandled managed exception: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00018] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:944
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeC
onstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:960
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x0003b] in <1b20576ce73640d782f136af13e79af3>:0
at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) [0x000d1] in <1b20576ce73640d782f136af13e79af3>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action) [0x0003b]
in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:107
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement]..ctor () [0x00043] in :0
at Xamarin.Forms.Platform.iOS.Platform+DefaultRenderer..ctor () <0xac3724 + 0x0004f> in <f0489d3941b24a20a5b9223b572ec7c0#9c3b417c4683f6b0313e0ba158ffc5f9>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:187
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:46
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0008f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:235
at (wrapper
managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIViewController.g.cs:3171
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:101
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:117
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:188
at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement view) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:300
at Xamarin.Forms.Platform.iOS.Platform.WillAppear () [0x0003c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:286
at Xamarin.Forms.Platform.iOS.Plat
formRenderer.ViewWillAppear (System.Boolean animated) [0x00010] in D:\a\1\s\Xamarin.Forms.Platform.iOS\PlatformRenderer.cs:86
at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend(intptr,intptr)
at UIKit.UIWindow.MakeKeyAndVisible () [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIWindow.g.cs:281
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.SetMainPage () [0x00006] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplicationDelegate.cs:171
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.FinishedLaunching (UIKit.UIApplication uiApplication, Foundation.NSDictionary launchOptions) [0x00030] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplicationDelegate.cs:57
at App1.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00013] in E:\Mobile apps samples\App1\App1.iOS\AppDelegate.cs:28
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
a
t UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at App1.iOS.Application.Main (System.String[] args) [0x00001] in E:\Mobile apps samples\App1\App1.iOS\Main.cs:17
--- inner exception ---
This API is not supported on this version of iOS (System.PlatformNotSupportedException)
at UIKit.UIMenuElement..ctor (System.IntPtr handle) [0x00007] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIMenuElement.g.cs:91
at UIKit.UICommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UICommand.g.cs:88
at UIKit.UIKey
Command..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:91
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
=================================================================
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.
=====================================
=================================================================
0x148d2e5 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1485847 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x148c8ff - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1d90c259 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1d912087 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
0x1d7ee95b - /usr/lib/system/libsystem_c.dylib : abort
0x1590760 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : xamarin_get_block_descriptor
0x14d02c7 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x1485467 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (nu
ll)
0x1484387 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x147c787 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x3d9618 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1c6b68 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1c6cdc - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1b0860 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x42f22c - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x42ff58 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x471008 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/A
D/App1.iOS.app/App1.iOS : mono_pmip
0x150cecb - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x1064d - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x2a931 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x232bdeb7 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232bdad9 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x4c19d8 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x468d68 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xb599a0 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xb59c5c - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xabd898 - /var/containers/B
pp1.iOS : (null)
0xad0adc - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xac3774 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xabd848 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xaced78 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xace46c - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xb5b4f4 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x39dd08 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1493747 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150a5e3 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21
abbc98 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xabaab0 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x35258 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x39dd08 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1493747 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150a5e3 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150cecb - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0xfc7f - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1028b - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/Ap
undle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xabef84 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xabecb8 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0xac6ec8 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x39dd08 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1493747 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150a5e3 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150cecb - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x1f257 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1f2c
em/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunSpecific
0x1df98fd1 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunInMode
0x23326e2d - /System/Library/Frameworks/UIKit.framework/UIKit :
0x23321a53 - /System/Library/Frameworks/UIKit.framework/UIKit : UIApplicationMain
0x4d223c - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x444a50 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x4449d4 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x35058 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x39dd08 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1493747 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x150a5e3 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
3 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x232d50ad - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232d4eff - /System/Library/Frameworks/UIKit.framework/UIKit :
0x233370df - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232c59d5 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232c4dad - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232c4c03 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232c4211 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x232c15bb - /System/Library/Frameworks/UIKit.framework/UIKit :
0x23331159 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x4c4bd0 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x469594 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x
p1.iOS : (null)
0x2332d5c5 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x2352ea4b - /System/Library/Frameworks/UIKit.framework/UIKit :
0x23533c1d - /System/Library/Frameworks/UIKit.framework/UIKit :
0x235467c5 - /System/Library/Frameworks/UIKit.framework/UIKit :
0x2353135b - /System/Library/Frameworks/UIKit.framework/UIKit :
0x1f96cc13 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices :
0x1f96cacd - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices :
0x1f96cdb7 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices :
0x1e047fdd - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1e047b05 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1e045f51 - /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation :
0x1df991af - /Syst
0x150e53f - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : mono_pmip
0x147c4f9 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x15a2f80 - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : _Z9__isctypeim
0x34f3b - /var/containers/Bundle/Application/2050D894-7248-41B3-9CB6-ABA73175D21D/App1.iOS.app/App1.iOS : (null)
0x1d7864eb - /usr/lib/system/libdyld.dylib :
=================================================================
Basic Fault Address Reporting
Memory around native instruction pointer (0x1d859acc):0x1d859abc 1c ff 2f e1 1e ff 2f e1 52 cf a0 e3 80 00 00 ef ../.../.R.......
0x1d859acc 04 00 00 3a 04 c0 9f e5 0c c0 9f e7 00 00 00 ea ...:............
0x1d859adc 4c 05 70 1a 1c ff 2f e1 1e ff 2f e1 53 cf a0 e3 L.p.../.../
.S...
0x1d859aec 80 00 00 ef 04 00 00 3a 04 c0 9f e5 0c c0 9f e7 .......:........
=================================================================
Managed Stacktrace:
=================================================================
Example Project (If Possible)
Create New Xamarin form project.
The text was updated successfully, but these errors were encountered: