You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From @natevarghese on Thursday, January 23, 2025 6:18:01 PM
Description
After updating all my projects to .NET 9, I encountered the following error when trying to access a custom Objective-C binding library, which is referenced by the iOS project. The issue only occurs on a physical iOS device:
Error: Could not find the type 'ObjCRuntime.Registrar' in the assembly.
Following suggestions, I added the recommended configuration to one or more of the referenced projects, as described in the release notes:
After making this change, the app crashes immediately on startup, preventing me from obtaining a stack trace. I'm unsure how to proceed. I’ve added the snippet to the iOS project, the binding library project(s), and every possible combination of them, but the issue persists.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.0 GA
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
8.0.3 GA
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No workarounds known
Relevant log output
The text was updated successfully, but these errors were encountered:
From @natevarghese on Saturday, January 25, 2025 10:10:52 AM
Please use this as a test repo. It has the objc bindings already so it's quite large but not a lot of code is required to reproduce it. https://github.com/natevarghese/Solution1
As a reminder it only crashes on physical iOS devices, so you will need to update the bundle identifier to one you have provisioned.
Issue moved from dotnet/maui#27312
From @natevarghese on Thursday, January 23, 2025 6:18:01 PM
Description
After updating all my projects to .NET 9, I encountered the following error when trying to access a custom Objective-C binding library, which is referenced by the iOS project. The issue only occurs on a physical iOS device:
Error:
Could not find the type 'ObjCRuntime.Registrar' in the assembly.
Following suggestions, I added the recommended configuration to one or more of the referenced projects, as described in the release notes:
Source: Xamarin .NET 9 Release Notes - Type Registrar
After making this change, the app crashes immediately on startup, preventing me from obtaining a stack trace. I'm unsure how to proceed. I’ve added the snippet to the iOS project, the binding library project(s), and every possible combination of them, but the issue persists.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.0 GA
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
8.0.3 GA
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No workarounds known
Relevant log output
The text was updated successfully, but these errors were encountered: