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.48k stars 514 forks source link

Xamarin.iOS: Internal consistency error #14521

Open rctec-at opened 2 years ago

rctec-at commented 2 years ago

Xamarin.iOS: Internal consistency error, please file a bug (https://github.com/xamarin/xamarin-macios/issues/new). Additional data: can't get the NSObject class because it's been linked away.

Build settings: https://prnt.sc/kDkE0-PjLzYk https://prnt.sc/xGFuctuqN22P https://prnt.sc/0xBmhotM2h7o

using Xamarin.Forms 5.0.0.2196

At the moment i have no known Workaround.

rolfbjarne commented 2 years ago

Thanks for reporting this issue to us!

The app is triggering a consistency check of the "this should never happen, and we have no idea how it can happen" kind, which unfortunately means that we're going to need a way to reproduce the issue ourselves in order to track it down. This can either be with a smaller test project, or we could also work with your actual project if that works for you (and the issue reproduces fairly easily). You could also iteratively remove code from your actual project until you've created a smaller test case that still reproduces the problem, if you're not willing to share your actual project with us.

rctec-at commented 2 years ago

@rolfbjarne i can maybe later this week try and provide this. for now i am behind deadline getting this release build to work somehow.

linkskip of Xamarin.iOS resultet in a scattered location error on build. Looking for workarounds for now.

rolfbjarne commented 2 years ago

linkskip of Xamarin.iOS resultet in a scattered location error on build. Looking for workarounds for now.

There are a few workarounds listed here: https://github.com/xamarin/xamarin-macios/issues/6787