xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.42k stars 507 forks source link

Error debugging on an iOS device #15878

Open czuck opened 1 year ago

czuck commented 1 year ago

Since updating to the latest versions of VS and Xamarin, when I debug against an iOS physical iPhone 11 running 15.6.1 the app will install on the phone but it will fail opening the app with the error "error MT0000: Unexpected error - Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new".
If I then run the app manually it loads but gives me an error stating the phone is offline even though it is not. Running on an iPhone emulator running 15.5 loads. without error

Steps to Reproduce

  1. From visual studio set to debug, attempt to debug on an iPhone .

Expected Behavior

app will install and run

Actual Behavior

app installs but doesn't run

Environment

Microsoft Visual Studio Enterprise 2022 Version 17.3.3 VisualStudio.17.Release/17.3.3+32825.248 Microsoft .NET Framework Version 4.8.04084

Installed Version: Enterprise

ASP.NET and Web Tools 17.3.376.3011 ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2012 17.3.376.3011 For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 17.3.376.3011 Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 17.3.376.3011 Azure Functions and Web Jobs Tools

C# Tools 4.3.0-3.22423.10+b35bb0baca1071d50cc4f8cf5a1a89e7cc112461 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.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud Services projects

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio 17.3.20 (3f4cb00) Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 6.3.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core) 17.0.0.2232702+e1d654e792aa2fe6646a6935bcca80ff0aff4387 Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.0.62207.04100 Microsoft SQL Server Data Tools

TypeScript Tools 17.0.10701.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.3.0-3.22423.10+b35bb0baca1071d50cc4f8cf5a1a89e7cc112461 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 17.1.0-beta.22363.4+1b94f89d4d1f41f20f9be73c76f4b229d4e49078 Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

VisualStudio.DeviceLog 1.0 Information about my package

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

VSPackage Extension 1.0 VSPackage Visual Studio Extension Detailed Info

Xamarin 17.3.0.296 (d17-3@a0ff24b) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.3.0.208 (remotes/origin/d17-3@e4f67afef) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.2.28 (9b3d244) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 13.0.0.0 (d17-3/030cd63) Xamarin.Android Reference Assemblies and MSBuild support. Mono: dffa5ab Java.Interop: xamarin/java.interop/d17-3@7716ae53 SQLite: xamarin/sqlite/3.38.5@df4deab Xamarin.Android Tools: xamarin/xamarin-android-tools/main@14076a6

Xamarin.iOS and Xamarin.Mac SDK 15.12.0.2 (87f98a75e) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Version information ``` ```

Build Logs

1>Starting deploy 'XX.iOS' into the device 'iPhone'... 1>Deploying 'XX.iOS' into the device 'iPhone'... 1>Deploy succeeded. The app 'XX.iOS' has been successfully deployed oniPhone. The app XX.iOS is already deployed oniPhone ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== Launching 'XX.iOS' on ' iPhone'... Launching... Using Xcode 13.4.1 found in /Applications/Xcode.app/Contents/Developer Xamarin.Hosting: Xamarin.Hosting Xamarin.Hosting: Version: 29a6536838 (refs/heads/main) Xamarin.Hosting: Xcode: /Applications/Xcode.app Xamarin.Hosting: Xcode Version: 13.4.1 Xamarin.Hosting: Verbosity: 1 2022-09-06 10:43:09.074 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2022-09-06 10:43:09.080 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2022-09-06 10:43:09.150 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.GPUMatrixQuickLookProvider of plug-in com.apple.dt.gpu.GPUDebugger 2022-09-06 10:43:09.150 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.MTLDebugSamplerState of plug-in com.apple.dt.gpu.GPUDebugger 2022-09-06 10:43:09.150 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.MTLDebugTexture of plug-in com.apple.dt.gpu.GPUDebugger 2022-09-06 10:43:09.176 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.GPUIssueQuickLookProvider of plug-in com.apple.dt.gpu.GPUDebugger 2022-09-06 10:43:09.180 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.MTLDebugBuffer of plug-in com.apple.dt.gpu.GPUDebugger 2022-09-06 10:43:09.183 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2022-09-06 10:43:09.183 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2022-09-06 10:43:09.183 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2022-09-06 10:43:09.187 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2022-09-06 10:43:09.192 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-09-06 10:43:09.192 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-09-06 10:43:09.192 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-09-06 10:43:09.192 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-09-06 10:43:09.192 mlaunch[10186:128587] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI Xamarin.Hosting: Device discovery started Xamarin.Hosting: Device discovery event: Connected (00008030-001A69142289802E) Xamarin.Hosting: Connected to iPhone (00008030-001A69142289802E) in 00:00:00.0371249 Xamarin.Hosting: Device discovery event: Connected (00008030-001A69142289802E) Xamarin.Hosting: Connected to iPhone (00008030-001A69142289802E) in 00:00:00.0246122 Xamarin.Hosting: Failed to get value 'WirelessHosts' from the device 00008030-001A69142289802E: Missing Value Error (error: 0xe8000015) Xamarin.Hosting: Failed to start session on iPhone: Value cannot be null. Parameter name: array warning MT1043: Failed to launch the application using the instruments service. Will try launching the app using gdb service. Launching 'com.xxx.xx' on the device 'iPhone' Xamarin.Hosting: Failed to start session on iPhone: Value cannot be null. Parameter name: array

Debug Log

The application 'XX.iOS' cannot be launched or debugged because it's not installed The app has been terminated.

chamons commented 1 year ago

Thanks for the feedback.

The 1043 appears to be an error from mlaunch, catching a hosting exception from another component. I'll let @rolfbjarne take a look, and see if we can figure out more or if we need additional info.

rolfbjarne commented 1 year ago

@czuck does this happen with all projects, or just one in particular? In other words: does it still fail if you create a new project from a template and try to run that on your device?

czuck commented 1 year ago

@rolfbjarne I just tried running a sample program I had downloaded previously - XFCarouselViewSample - and got the same behavior: Parameter name: array warning MT1043: Failed to launch the application using the instruments service. Will try launching the app using gdb service. Launching 'nl.versluis.XFCarouselViewSample' on the device 'iPhone' Xamarin.Hosting: Failed to start session on iPhone: Value cannot be null. Parameter name: array

It did install and I was able to start it from the icon on my phone,

czuck commented 1 year ago

Did a File new app and also got the same behavior: Xamarin.Hosting: Connected toiPhone (00008030-001A69142289802E) in 00:00:00.0024806 Xamarin.Hosting: Failed to get value 'WirelessHosts' from the device 00008030-001A69142289802E: Missing Value Error (error: 0xe8000015) Xamarin.Hosting: Failed to start session on iPhone: Value cannot be null. Parameter name: array warning MT1043: Failed to launch the application using the instruments service. Will try launching the app using gdb service. Launching 'com.xxx.NewTestApp1' on the device 'iPhone' Xamarin.Hosting: Failed to start session on iPhone: Value cannot be null. Parameter name: array

Noticed that the builds were taking a long time so I opened the Activity Monitor on the Mac and it seems the build/deploy process starts an instance of mlaunch that were not completing, so I had 10+ instances running.

czuck commented 1 year ago

I followed these instructions to restart the iphone: Press and quickly release the volume up button, then do the same with the volume down button. Hold the side button until the Apple logo appears, then release it and it appears to have cleared up the issue. I will close this for now.

czuck commented 1 year ago

Getting something similar but different today .. [0:] System.Net.Http.HttpRequestException: The Internet connection appears to be offline. ---> Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x280348b40 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (Local network prohibited), interface: en0, ipv4, ipv6, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <4A273549-5052-448E-B2B3-4EB0DB8D9111>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <4A273549-5052-448E-B2B3-4EB0DB8D9111>.<2>" ), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=http://192.168.1.49/m/d/ApiErrorHandler/LogError, NSErrorFailingURLKey=http://192.168.1.49/m/d/ApiErrorHandler/LogError, _kCFStreamErrorDomainKey=1} The device is connected to the internet, I can go to safari and do a google search. resetting the phone as described above did clear the issue again. This phone is only used for testing.

rolfbjarne commented 1 year ago

@czuck the failing URL seems to be a local IP address (192.168.1.49), not something on the internet.

czuck commented 1 year ago

Yes, that is my test server, it's on a local network. But the URL is good and worked in a browser.

And my original issue is back today, resetting the phone isn't fixing it.

mackayn commented 1 year ago

@rolfbjarne Seeing this on a brand new Win11 laptop running VS2022 17.4.1, a Win10 laptop running 17.5-pre1 and 17.4.1

2022-11-21 18:26:11.571 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2022-11-21 18:26:11.573 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.Application of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.Tool of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.IntentsService-AppExtension of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.WatchOS.Bundle of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.WatchKit2-AppExtension of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.WatchOS.BundleInfo of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.Framework of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.ExtensionKitAppExtension of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.WatchOS.AppExtension of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.586 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.IDEiPhoneSupport.TargetEditor for extension Xcode.IDEiPhoneSupport.TargetEditor.WatchOS.Application of plug-in com.apple.dt.IDEWatchSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.IDEAppleTVSupportUIFramework of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.IDEAppleTVSupportUI.Application of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.IDEAppleTVSupportUI.AppExtension of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.IDEAppleTVSupportUI.ExtensionKitAppExtension of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.appletvos.Bundle of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.TargetSummaryEditor for extension Xcode.Xcode3ProjectSupport.TargetSummaryEditor.IDEAppleTVSupportUI.XPC of plug-in com.apple.dt.IDEAppleTVSupportUI 2022-11-21 18:26:11.587 mlaunch[8098:39105] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.appletvos.BundleTargetInfo of plug-in com.apple.dt.IDEAppleTVSupportUI

This is an M1 build host running Ventura 13.0.1, XCode 14.0.1, XCode 14.1 has the same issue, tried all the command like tool hacks but nothing works.

Previous, macOS, all was okayiiiish.

It's always ends the same way (below), debug device is iPhone12 running 16.1.1, iPad 7th gen on same OS has the same issue, sim debug is fine but that's not useful when your supposed to be debugging push notifications.

The application 'Redacted.iOS' cannot be launched or debugged because it's not installed The app has been terminated.

Any ideas would be much appreciated, it's been this was pretty much since VS2022 17.3 appeared.

mackayn commented 1 year ago

@rolfbjarne VS4mac on same build host deploys, debugs fine for the same project.

` Visual Studio Community 2022 for Mac Version 17.4 (build 2406) Installation UUID: 84fb74fe-859b-4a75-81fa-63e01cb3a3db

Runtime .NET 6.0.9 (64-bit) Architecture: Arm64

Roslyn (Language Service) 4.4.0-3.22461.4+8ab250290a4010c11a21521f78dbc87dbb7aac81

NuGet Version: 6.3.1.1

.NET SDK (Arm64) SDK: /usr/local/share/dotnet/sdk/7.0.100/Sdks SDK Versions:       7.0.100       6.0.403       6.0.400       6.0.302       6.0.301       6.0.300 MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks

.NET SDK (x64) SDK Versions:       3.1.425       3.1.422       3.1.421       3.1.420       3.1.419

.NET Runtime (Arm64) Runtime: /usr/local/share/dotnet/dotnet Runtime Versions:       7.0.0       6.0.11       6.0.8       6.0.7       6.0.6       6.0.5

.NET Runtime (x64) Runtime: /usr/local/share/dotnet/x64/dotnet Runtime Versions:       3.1.31       3.1.28       3.1.27       3.1.26       3.1.25

Xamarin.Profiler Version: 1.8.0.19 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater Version: 11

Xamarin Designer Version: 17.4.0.136 Hash: d49c9ff6d3 Branch: remotes/origin/d17-4 Build date: 2022-11-02 23:47:17 UTC

Xamarin.Android Not Installed

Microsoft Build of OpenJDK Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk 11.0.12 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

Eclipse Temurin JDK Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk 1.8.0.302 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager Version: 17.4.0.54 Hash: 6eabb9e Branch: remotes/origin/d17-4 Build date: 2022-11-02 23:47:26 UTC

Android Device Manager Version: 0.0.0.1206 Hash: 886af39 Branch: 886af39 Build date: 2022-11-02 23:47:26 UTC

Apple Developer Tools Xcode 14.0.1 (21336) Build 14A400

Xamarin.Mac Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.

Xamarin.iOS Version: 16.0.0.72 (Visual Studio Community) Hash: 6756a1146 Branch: release/6.0.4xx-xcode14 Build date: 2022-09-21 08:51:06-0400

Build Information Release ID: 1704002406 Git revision: dfb45c1152306f0d5f77334f9d026b0aadb7ec90 Build date: 2022-11-02 23:44:22+00 Build branch: release-17.4 Build lane: release-17.4

Operating System Mac OS X 13.0.1 Darwin 22.1.0 Darwin Kernel Version 22.1.0 Sun Oct 9 20:14:30 PDT 2022 root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64

`

rolfbjarne commented 1 year ago

The Requested but did not find extension point with identifier ... messages are harmless (they're from a library from Apple we use to interact with devices and simulators, so we have no control over it).

And just to make sure I understand:

mackayn commented 1 year ago

@rolfbjarne

Hi,

It's been like this since VS2022 17.3. VS2022 17.2.6 was the last stable build I had for iOS debugging but the XCode 14 upgrade forced the buildhost onto Ventura and can't go backwards.

Project is Xamarin Forms 5.x

rolfbjarne commented 1 year ago

@mackayn does this just happen with one project, or all projects? i.e. does it still happen if you create a new project from a template?

rolfbjarne commented 1 year ago

@rolfbjarne

I created a blank XForms 5.latest project with the same bundle identifier and provisioning profile and it deploys fine and the debugger attaches.

This is a pretty big app 14+ months in dev and in the App store.

That indicates it's something specific to your project. Could you file a new issue (since it's probably not related to the original reporter's issue here)?

mackayn commented 1 year ago

@rolfbjarne Sorry deleted the wrong post, fresh deployment works fine. Not sure how to report this as the logs indicate nothing is wrong?

mackayn commented 1 year ago

@rolfbjarne VS2022 doesn't report anything but VS2022 17.5.1 does give this error in the logs

Xamarin.Messaging.Ssh.MessagingService Information: 0 : Agent Build 17.5.0.66 is running: 11/22/2022 11:15:36Z DateTime=2022-11-22T11:15:36.2795565Z: 11/22/2022 11:15:36Z Xamarin.VisualStudio.Apple.ProjectSystem.AppleProjectTracker Warning: 0 : An error occurred while trying to change the device platform for 'My iPhone' System.Runtime.InteropServices.COMException (0x80004005): Project unavailable. at EnvDTE.Project.get_Properties() at Clide.GlobalProjectProperties.TryGetDteProperty(String propertyName, Object& result) at Clide.GlobalProjectProperties.Clide.IPropertyAccessor.TryGetProperty(String propertyName, Object& result) at Clide.DynamicPropertyAccessor.TryGetMember(GetMemberBinder binder, Object& result, TryGetMemberDelegate baseTryGetMember) at CallSite.Target(Closure , CallSite , Object ) at Xamarin.VisualStudio.Apple.ProjectSystem.AppleProjectTracker.<OnDeviceSelectedAsync>d__58.MoveNext() in D:\a\_work\1\s\src\Core\VisualStudio.IOS\ProjectSystem\AppleProjectTracker.cs:line 467: 11/22/2022 11:27:21Z

Really weird, I've matched the csproj settings for iphone|debug and nothing is different.

mackayn commented 1 year ago

An error occurred while trying to change the device platform for

Thanks for your assistance, discovered the issue. It was due to some plist switching for different build configs, turns out, it was been ignored and it was using the phone cert or something. We know what the issue is now and the app builds and debugs on VS2022 17.4, XCode 14.0.1 and iPhone 12 (iOS 16.1.1). It seemed to work with VS2022 17.2.x but since 17.3 came alone, it's been failing.

Soap-141 commented 1 year ago

https://github.com/dotnet/maui/issues/9056