-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
CollectionView with IsGrouped="True" throws NSInternalInconsistencyException with iOS 18 SDK #24971
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
This is a blocking issue, our app immediately crashes with Xcode 16 but we are struggling to roll back as we have already updated to the latest MAUI workloads and the current error raised when trying to target Xcode 15.4 are for example: error MT4162: The type 'UIKit.UITextFormattingViewController' (used as a parameter in UIKit.UITextView/_UITextViewDelegate.DidBeginFormatting) is not available in iOS 17.5 (it was introduced in iOS 18.0). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). We have not updated MAC OS yet, does anyone have work around or the cmd lines to rollback to previous MAUI workloads? Or rolling back to a specific workload such as 4.0.100 |
@LeoJHarris You can install Xcode 15.4 and use the previous workload version:
If you are building your app in a pipeline i.e. Azure DevOps you can do something like this:
|
@velocitysystems that worked Running in the cmd line: Also my Mac OS is still using Sonoma 14.7 which is probably my saving grace at the moment. The entire MAUI iOS eco system seems extremely fragile atm. But this is the only thing that work for me and probably the best I can upgrade to. |
Still having the same issue in a minimal repro, I updated to 9.0.0-rc.1.24453.9 with no benefit: NSInternalInconsistencyException Reason: Expected dequeued view to be returned to the collection view in preparation for display. Any update on this topic? |
Definitely regression tested on mutliple systems with Sequoia. Problem is that macOS Sequoia only works with Xcode 16, iOS18 SDK. This means there is no fix at the moment... |
Getting this here too. |
Looks like this should be fixed with .NET MAUI 8.0.92, please try that one and open a new issue if thats not the case. Thanks! |
We tested 8.0.92, but it brings a whole new set of problems for us, like many of the new .Net Maui releases. We stick with 8.0.82 and XCode 15.4 here for now, that's the most stable we have been able to achieve so far with Maui (our Xamarin Forms were stable for years without any issues). |
I have the same problem with 8.0.82 and Xcode 16 on iOS 18 when using grouped CollectionView. And I can confirm that Microsoft.Maui.Controls 8.0.92 solves this problem but brings whole new set of problems:
Unfortunately I can't downgrade Xcode to 15.4 because of update Mac OS to Sequoia. Is there any workaround? Maybe somebody can make some Handler to resolve this issue and continue to use 8.0.82? |
Hi, I have found a solution to this problem for anyone who is still struggling. All I had to do to get this to work is to add a few packages to the main project csproj. These are the packages that I added: Once you’ve added these packages, do a clean, delete bin and obj, launch visual studio, build the project and run it. This resolved my Collectionview IsGrouped issue for iOS 18.0, I hope it resolves yours too. |
Thank you for your answer! |
Description
CollectionView
withIsGrouped="True"
throws aNSInternalInconsistencyException
.This happens when built with Xcode 16/iOS 18 SDK.
Note: This did not happen when building with Xcode 15.4/iOS 17.x SDK.
Steps to Reproduce
Create a blank MAUI app.
Add a
CollectionView
to a page with a data source and grouping enabled.Link to public reproduction project repository
No response
Version with bug
8.0.91 SR9.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.91 SR9.1
Affected platforms
iOS
Affected platform versions
.NET 8.0.1xxx - Xcode 16.0 Support (8303)
Did you find any workaround?
Disable grouping.
Relevant log output
The text was updated successfully, but these errors were encountered: