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.45k stars 511 forks source link

Xamarin iOS Debug Build Error: Failed to compile the generated registrar code #16195

Closed busidex-vinbrown closed 2 years ago

busidex-vinbrown commented 2 years ago

error MT4109: Failed to compile the generated registrar code. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new

Steps to Reproduce

  1. Using Visual Studio 2022, Build the Xamarin iOS project.
  2. Build fails. "Failed to compile the generated registrar code"

Expected Behavior

Build should succeed.

Actual Behavior

Build fails.

Environment

Version information ``` Microsoft Visual Studio Community 2022 Version 17.4.0 Preview 2.1 VisualStudio.17.Preview/17.4.0-pre.2.1+32916.344 Microsoft .NET Framework Version 4.8.04161 Installed Version: Community ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools ASA Service Provider 1.0 ASP.NET and Web Tools 17.4.210.756 ASP.NET and Web Tools Azure App Service Tools v3.0.0 17.4.210.756 Azure App Service Tools v3.0.0 Azure Data Lake Tools for Visual Studio 2.6.5000.0 Microsoft Azure Data Lake Tools for Visual Studio Azure Functions and Web Jobs Tools 17.4.210.756 Azure Functions and Web Jobs Tools Azure Stream Analytics Tools for Visual Studio 2.6.5000.0 Microsoft Azure Stream Analytics Tools for Visual Studio C# Tools 4.4.0-2.22430.14+2f760738cb92f32f50c981b68ba04ac3c8b7ee48 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.4.1 (main@2ee106a) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration. Microsoft Azure Hive Query Language Service 2.6.5000.0 Language service for Hive query Microsoft Azure Stream Analytics Language Service 2.6.5000.0 Language service for Azure Stream Analytics 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.4.19 (8c0a575) Support for debugging Mono processes with Visual Studio. Node.js Tools 1.5.40817.1 Commit Hash:66443775f9f3b1d8f8fee47af5002828b346688d Adds support for developing and debugging Node.js apps in Visual Studio NuGet Package Manager 6.4.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/ Razor (ASP.NET Core) 17.0.0.2243101+64a0117763b8eb085c75bdb80329e16e5a2c65a5 Provides languages services for ASP.NET Core Razor. SQL Server Data Tools 17.0.62207.28050 Microsoft SQL Server Data Tools ToolWindowHostedEditor 1.0 Hosting json editor into a tool window TypeScript Tools 17.0.10901.2002 TypeScript Tools for Microsoft Visual Studio Visual Basic Tools 4.4.0-2.22430.14+2f760738cb92f32f50c981b68ba04ac3c8b7ee48 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.4.0-beta.22429.6+22514929f2e903ea8c14947bea7c2b242886e1ee 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.4.0.171 (d17-4-net7@4d0f4c0) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin Designer 17.4.0.124 (remotes/origin/d17-4@ffbba0c031) Visual Studio extension to enable Xamarin Designer tools in Visual Studio. Xamarin Templates 17.4.2 (c457c97) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms. Xamarin.Android SDK 13.0.99.81 (main/7c9c24b) Xamarin.Android Reference Assemblies and MSBuild support. Mono: dffa5ab Java.Interop: xamarin/java.interop/main@2c8b0a8f SQLite: xamarin/sqlite/3.39.2@40e8743 Xamarin.Android Tools: xamarin/xamarin-android-tools/main@29f11f2 Xamarin.iOS and Xamarin.Mac SDK 15.13.0.65 (409c80dd9) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support. ```

Build Logs

Example Project (If Possible)

dalexsoto commented 2 years ago

Please make sure you are using the latest stable VS version and Xcode 14.

ghost commented 2 years ago

Hi @busidex-vinbrown. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

busidex-vinbrown commented 2 years ago

After installing the latest Xamarin.iOS build, all is working again. This issue is ok to close. Thank you. https://www.busidex.com

Vincent Brown Chief Technology Officer

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, may contain information that is legally privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, copying of this e-mail message or use of the information is STRICTLY PROHIBITED. If you received this message in error, immediately notify the sender & delete this e-mail message including any attachments in its entirety from your computer.

On Wed, Sep 28, 2022 at 10:13 PM msftbot[bot] @.***> wrote:

Hi @busidex-vinbrown https://github.com/busidex-vinbrown. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

β€” Reply to this email directly, view it on GitHub https://github.com/xamarin/xamarin-macios/issues/16195#issuecomment-1261655107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVTRNWQONB7UY74IWRBL5TWAT3NBANCNFSM6AAAAAAQYGUP4U . You are receiving this because you were mentioned.Message ID: @.***>