Skip to content
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

[ios] update MemoryAnalyzers package, add to Controls #18318

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jonathanpeppers
Copy link
Member

  • Use MemoryAnalyzers 0.1.0-beta.4
  • Rename Microsoft.Extensions.targets to NuGetVersions.targets as it contains many more packages beyond Microsoft.Extensions
  • Track MemoryAnalyzers version in NuGetVersions.targets
  • Use analyzer in Controls.Core.csproj, this will currently have lots of errors

* Use MemoryAnalyzers  `0.1.0-beta.4`
* Rename `Microsoft.Extensions.targets` to `NuGetVersions.targets` as it contains many more packages beyond Microsoft.Extensions
* Track MemoryAnalyzers version in `NuGetVersions.targets`
* Use analyzer in `Controls.Core.csproj`, this will currently have lots of errors
@jonathanpeppers jonathanpeppers added memory-leak 💦 Memory usage grows / objects live forever platform/iOS 🍎 labels Oct 24, 2023
@jsuarezruiz
Copy link
Contributor

Oh, this is great. Taking a look to the build, it already have found 362 errors spread between different renderers, mainly ListViewRenderer, Shell renderers etc.

@jonathanpeppers
Copy link
Member Author

When you take out the iOS/Catalyst duplicates, I think there are 181:

src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(24,29): error MEM0001: Event 'WillDisappear' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(23,29): error MEM0001: Event 'WillAppear' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(15,15): error MEM0002: Member '_bgImage' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(14,22): error MEM0002: Member '_blurView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(17,19): error MEM0002: Member '_headerView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(20,28): error MEM0002: Member '_tableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(18,19): error MEM0002: Member '_footerView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.iOS.cs(803,28): error MEM0002: Member '_dontCollectMePlease' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(22,12): error MEM0002: Member '_uIViews' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/CustomHoverGestureRecognizer.cs(28,36): error MEM0002: Member 'action' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/CustomHoverGestureRecognizer.cs(15,11): error MEM0002: Member '_target' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(122,26): error MEM0002: Member '_flyoutAnimation' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(146,20): error MEM0002: Member 'Detail' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(197,26): error MEM0002: Member 'PanGestureRecognizer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(203,10): error MEM0002: Member 'TapoffView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(28,10): error MEM0002: Member '_containerArea' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(27,10): error MEM0002: Member '_blurView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(40,26): error MEM0002: Member '_pageAnimation' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerView.cs(18,31): error MEM0001: Event 'HeaderSizeChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerView.cs(14,10): error MEM0002: Member '_platformView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(17,19): error MEM0002: Member '_onElementSelected' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(15,33): error MEM0002: Member '_source' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(80,22): error MEM0002: Member '_pendingViewControllers' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(671,36): error MEM0002: Member '_parent' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(672,24): error MEM0002: Member '_shouldPop' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(12,10): error MEM0002: Member '_bindingContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(690,34): error MEM0002: Member '_self' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(15,24): error MEM0002: Member 'IndexPath' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(14,36): error MEM0002: Member 'ViewMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(16,24): error MEM0002: Member 'TableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(49,37): error MEM0001: Event 'ItemSelected' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(26,43): error MEM0001: Event 'ScrolledEvent' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(15,28): error MEM0002: Member '_onElementSelected' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(235,11): error MEM0002: Member '_line' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/DefaultCell.cs(14,32): error MEM0002: Member 'Constraint' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/DefaultCell.cs(12,18): error MEM0002: Member 'Label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(18,20): error MEM0002: Member '_detailController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(24,26): error MEM0002: Member '_panGesture' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(27,23): error MEM0002: Member '_tapGesture' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(17,10): error MEM0002: Member '_clickOffView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(79,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(22,20): error MEM0002: Member '_flyoutController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellTableViewCell.cs(14,51): error MEM0002: Member 'PropertyChanged' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(43,10): error MEM0002: Member '_backgroundView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(45,26): error MEM0002: Member '_closer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(46,10): error MEM0002: Member '_container' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(47,75): error MEM0002: Member '_globalCloser' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(71,17): error MEM0002: Member 'ClosedCallback' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(51,15): error MEM0002: Member '_table' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(61,10): error MEM0002: Member '_bottomShadow' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(60,10): error MEM0002: Member '_bar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(325,19): error MEM0002: Member 'Label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(28,16): error MEM0002: Member '_scroller' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(27,12): error MEM0002: Member '_moreButton' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(29,15): error MEM0002: Member '_tableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(59,26): error MEM0002: Member 'ContentCell' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(633,16): error MEM0002: Member '_lastPath' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(34,30): error MEM0002: Member '_getPrototype' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(37,10): error MEM0002: Member '_emptyUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(20,21): error MEM0002: Member 'ItemsView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(27,29): error MEM0002: Member 'ItemsViewLayout' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(42,48): error MEM0002: Member 'Delegator' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewDelegator.cs(17,26): error MEM0002: Member 'ItemsViewLayout' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(163,30): error MEM0001: Event 'KeyboardDoneButtonPressed' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(178,30): error MEM0001: Event 'TextFieldTextChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(161,23): error MEM0002: Member 'TextField' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(16,63): error MEM0001: Event 'LayoutAttributesChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(15,40): error MEM0001: Event 'ContentSizeChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1504,20): error MEM0002: Member '_refresh' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(23,10): error MEM0002: Member '_scrollAnimationEndedCallback' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(20,17): error MEM0002: Member '_measurementCellTemplated' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(21,15): error MEM0002: Member '_measurementCellDefault' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(88,65): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(48,13): error MEM0002: Member '_virtualView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(89,56): error MEM0001: Event 'ElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(33,10): error MEM0002: Member '_backgroundUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(34,22): error MEM0002: Member '_dataSource' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(41,30): error MEM0002: Member '_tableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(189,26): error MEM0002: Member '_imageView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(190,22): error MEM0002: Member '_label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(970,16): error MEM0002: Member '_uiTableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(971,31): error MEM0002: Member '_uiTableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewRenderer.cs(15,10): error MEM0002: Member '_originalBackgroundView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(92,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1480,19): error MEM0002: Member '_tableViewCell' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/GlobalCloseContextGestureRecognizer.cs(12,16): error MEM0002: Member '_scrollView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(29,22): error MEM0002: Member '_tabBarAppearance' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(20,10): error MEM0002: Member '_footerUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(17,10): error MEM0002: Member '_headerUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ReorderableItemsViewController.cs(15,32): error MEM0002: Member '_longPressGestureRecognizer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/iOS/ViewRenderer.cs(18,18): error MEM0002: Member '_nativeView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/iOS/FrameRenderer.cs(18,13): error MEM0002: Member '_actualView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/NativeViewPropertyListener.cs(22,44): error MEM0001: Event 'PropertyChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(62,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewModelRenderer.cs(15,25): error MEM0002: Member 'Table' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(33,22): error MEM0002: Member '_removeControllers' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(34,13): error MEM0002: Member '_secondaryToolbar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(71,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1102,30): error MEM0001: Event 'Appearing' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1113,30): error MEM0001: Event 'Disappearing' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1744,30): error MEM0002: Member '_bar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1746,16): error MEM0002: Member '_icon' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1707,19): error MEM0002: Member 'NavBarLabel' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(109,27): error MEM0003: Subscribing to events with instance method 'PageOnSizeChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(21,31): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Platform/iOS/ControlsModalWrapper.cs(59,29): error MEM0003: Subscribing to events with instance method 'OnModalPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewModelRenderer.cs(22,25): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(177,45): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(100,36): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(78,30): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(79,27): error MEM0003: Subscribing to events with instance method 'OnPagesChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(129,64): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(130,29): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(43,29): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(181,35): error MEM0003: Subscribing to events with instance method 'OnViewMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(33,42): error MEM0003: Subscribing to events with instance method 'OnFlyoutItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(34,29): error MEM0003: Subscribing to events with instance method 'OnScrolled' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(55,43): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/iOS/VisualElementRenderer.cs(79,26): error MEM0003: Subscribing to events with instance method 'OnSizeChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/iOS/VisualElementRenderer.cs(80,29): error MEM0003: Subscribing to events with instance method 'OnBatchCommitted' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(534,52): error MEM0003: Subscribing to events with instance method 'HandleFlyoutPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellTableViewCell.cs(39,31): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(101,36): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(102,53): error MEM0003: Subscribing to events with instance method 'OnShellSectionItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/CarouselViewController.cs(30,25): error MEM0003: Subscribing to events with instance method 'CarouselViewScrolled' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(180,40): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(203,57): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(304,28): error MEM0003: Subscribing to events with instance method 'OnPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(143,74): error MEM0003: Subscribing to events with instance method 'OnContextItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(177,29): error MEM0003: Subscribing to events with instance method 'OnCellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(178,75): error MEM0003: Subscribing to events with instance method 'OnContextItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(141,40): error MEM0003: Subscribing to events with instance method 'OnFormsElementMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/CarouselViewController.cs(288,46): error MEM0003: Subscribing to events with instance method 'CollectionViewUpdating' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/CarouselViewController.cs(289,45): error MEM0003: Subscribing to events with instance method 'CollectionViewUpdated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1522,29): error MEM0003: Subscribing to events with instance method 'OnRefreshingChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(581,29): error MEM0003: Subscribing to events with instance method 'OnButtonActivated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(610,25): error MEM0003: Subscribing to events with instance method 'OnButtonActivated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(238,35): error MEM0003: Subscribing to events with instance method 'OnScrollToRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(241,41): error MEM0003: Subscribing to events with instance method 'OnCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(242,48): error MEM0003: Subscribing to events with instance method 'OnGroupedCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(469,38): error MEM0003: Subscribing to events with instance method 'OnFooterMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(508,38): error MEM0003: Subscribing to events with instance method 'OnHeaderMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(40,37): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(211,39): error MEM0003: Subscribing to events with instance method 'OnPushRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(212,38): error MEM0003: Subscribing to events with instance method 'OnPopRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(213,44): error MEM0003: Subscribing to events with instance method 'OnPopToRootRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(214,45): error MEM0003: Subscribing to events with instance method 'OnRemovedPageRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(215,51): error MEM0003: Subscribing to events with instance method 'OnInsertPageBeforeRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(228,31): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(266,31): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(199,53): error MEM0003: Subscribing to events with instance method 'OnShellSectionItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(202,36): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(143,35): error MEM0003: Subscribing to events with instance method 'OnFooterMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(53,29): error MEM0003: Subscribing to events with instance method 'OnShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(56,58): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(31,38): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(69,47): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(32,69): error MEM0003: Subscribing to events with instance method 'OnNavigationRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs(45,36): error MEM0003: Subscribing to events with instance method 'LayoutOnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(245,33): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(247,50): error MEM0003: Subscribing to events with instance method 'OnItemsCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(86,38): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(87,32): error MEM0003: Subscribing to events with instance method 'OnNavigated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(88,33): error MEM0003: Subscribing to events with instance method 'OnNavigating' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(150,64): error MEM0003: Subscribing to events with instance method 'OnProxyCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(96,38): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(97,32): error MEM0003: Subscribing to events with instance method 'OnNavigated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(98,33): error MEM0003: Subscribing to events with instance method 'OnNavigating' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(215,41): error MEM0003: Subscribing to events with instance method 'OnListProxyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(276,45): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1000,26): error MEM0003: Subscribing to events with instance method 'OnItemSelected' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(328,39): error MEM0003: Subscribing to events with instance method 'OnDisplayedPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(387,39): error MEM0003: Subscribing to events with instance method 'OnDisplayedPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ViewCellRenderer.cs(199,34): error MEM0003: Subscribing to events with instance method 'ViewCellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ViewCellRenderer.cs(223,42): error MEM0003: Subscribing to events with instance method 'OnMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(355,31): error MEM0003: Subscribing to events with instance method 'CellContentSizeChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(356,36): error MEM0003: Subscribing to events with instance method 'CellLayoutAttributesChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1094,33): error MEM0003: Subscribing to events with instance method 'HandleChildPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1187,35): error MEM0003: Subscribing to events with instance method 'TrackerOnCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1768,26): error MEM0003: Subscribing to events with instance method 'OnTitleViewParentSet' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1409,32): error MEM0003: Subscribing to events with instance method 'OnShortNamesCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.

@jonathanpeppers
Copy link
Member Author

jonathanpeppers commented Oct 25, 2023

There might also be a bug or two in the analyzer, like this one seems odd (instance method ''):

src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewModelRenderer.cs(22,25): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.

@Eilon Eilon added the legacy-area-perf Startup / Runtime performance label Nov 9, 2023
jonathanpeppers added a commit to jonathanpeppers/maui that referenced this pull request Nov 13, 2023
Context: dotnet#18365

I could reproduce a leak in `TableView` by adding a parameterized test:

    [InlineData(typeof(TableView))]
    public async Task HandlerDoesNotLeak(Type type)

`TableViewModelRenderer` has two cycles:

* `TableView` ->
* `TableViewRenderer` ->
* `TableViewModelRenderer` ->
* `TableView` via `View` field

* `UITableView.Source` ->
* `TableViewModelRenderer` ->
* `UITableView` via `Table` field

I left the `Table` and `View` fields in place to not break any public
APIs. They are now unused and marked `[Obsolete]`. I used
`WeakReference<T>` to solve these two cycles and the test now passes.

The analyzer warned about these locations, but we don't have the analyzer
enabled on `Microsoft.Maui.Controls` yet:

dotnet#18318 (comment)
rmarinho pushed a commit that referenced this pull request Nov 17, 2023
Context: #18365

I could reproduce a leak in `TableView` by adding a parameterized test:

    [InlineData(typeof(TableView))]
    public async Task HandlerDoesNotLeak(Type type)

`TableViewModelRenderer` has two cycles:

* `TableView` ->
* `TableViewRenderer` ->
* `TableViewModelRenderer` ->
* `TableView` via `View` field

* `UITableView.Source` ->
* `TableViewModelRenderer` ->
* `UITableView` via `Table` field

I left the `Table` and `View` fields in place to not break any public
APIs. They are now unused and marked `[Obsolete]`. I used
`WeakReference<T>` to solve these two cycles and the test now passes.

The analyzer warned about these locations, but we don't have the analyzer
enabled on `Microsoft.Maui.Controls` yet:

#18318 (comment)
@jonathanpeppers
Copy link
Member Author

The warnings have increased as I improved the analyzer, 214 now:

src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(189,26): error MEM0002: Member '_imageView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(190,22): error MEM0002: Member '_label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/iOS/NativeViewPropertyListener.cs(22,44): error MEM0001: Event 'PropertyChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/iOS/GlobalCloseContextGestureRecognizer.cs(12,16): error MEM0002: Member '_scrollView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/DefaultCell.cs(12,18): error MEM0002: Member 'Label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellTableViewCell.cs(14,51): error MEM0002: Member 'PropertyChanged' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(43,10): error MEM0002: Member '_backgroundView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(45,26): error MEM0002: Member '_closer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(47,75): error MEM0002: Member '_globalCloser' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(46,10): error MEM0002: Member '_container' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(51,15): error MEM0002: Member '_table' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextScrollViewDelegate.cs(71,17): error MEM0002: Member 'ClosedCallback' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/DefaultCell.cs(14,32): error MEM0002: Member 'Constraint' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(18,20): error MEM0002: Member '_detailController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(17,10): error MEM0002: Member '_clickOffView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(27,23): error MEM0002: Member '_tapGesture' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(36,16): error MEM0002: Member '_mauiContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(24,26): error MEM0002: Member '_panGesture' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(60,70): error MEM0002: Member 'Mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(79,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(22,20): error MEM0002: Member '_flyoutController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(178,30): error MEM0001: Event 'TextFieldTextChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(163,30): error MEM0001: Event 'KeyboardDoneButtonPressed' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/EntryCellRenderer.cs(161,23): error MEM0002: Member 'TextField' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(27,12): error MEM0002: Member '_moreButton' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(28,16): error MEM0002: Member '_scroller' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(29,15): error MEM0002: Member '_tableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(59,26): error MEM0002: Member 'ContentCell' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(633,16): error MEM0002: Member '_lastPath' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1482,19): error MEM0002: Member '_tableViewCell' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1506,20): error MEM0002: Member '_refresh' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(20,27): error MEM0002: Member 'ItemsSource' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewRenderer.cs(15,10): error MEM0002: Member '_originalBackgroundView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewDelegator.cs(17,26): error MEM0002: Member 'ItemsViewLayout' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(20,17): error MEM0002: Member '_measurementCellTemplated' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(23,10): error MEM0002: Member '_scrollAnimationEndedCallback' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/GroupableItemsViewController.cs(21,15): error MEM0002: Member '_measurementCellDefault' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(14,40): error MEM0001: Event 'ContentSizeChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(17,10): error MEM0002: Member '_headerUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(20,10): error MEM0002: Member '_footerUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(15,63): error MEM0001: Event 'LayoutAttributesChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(33,10): error MEM0002: Member '_backgroundUIView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(34,22): error MEM0002: Member '_dataSource' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(35,24): error MEM0002: Member '_headerRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(36,24): error MEM0002: Member '_footerRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(28,16): error MEM0002: Member '_mauiContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(29,22): error MEM0002: Member '_tabBarAppearance' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(33,61): error MEM0002: Member 'Mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(41,30): error MEM0002: Member '_tableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(62,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(791,25): error MEM0002: Member '_prototype' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(972,16): error MEM0002: Member '_uiTableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(973,31): error MEM0002: Member '_uiTableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Handlers/Items/iOS/ReorderableItemsViewController.cs(15,32): error MEM0002: Member '_longPressGestureRecognizer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(15,55): error MEM0002: Member 'Mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(71,22): error MEM0002: Member '_currentShellItemRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(73,24): error MEM0002: Member '_flyoutRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(75,22): error MEM0002: Member '_incomingRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(92,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/iOS/ViewRenderer.cs(18,18): error MEM0002: Member '_nativeView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(50,13): error MEM0002: Member '_tempElement' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(55,28): error MEM0002: Member '_mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(30,65): error MEM0002: Member 'VisualElementRendererMapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(54,17): error MEM0002: Member '_mauiContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(57,37): error MEM0002: Member '_defaultMapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(98,56): error MEM0001: Event 'ElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/VisualElementRenderer.cs(97,65): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(76,16): error MEM0002: Member '_mauiContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/iOS/FrameRenderer.cs(12,55): error MEM0002: Member 'Mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/iOS/FrameRenderer.cs(18,13): error MEM0002: Member '_actualView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(33,22): error MEM0002: Member '_removeControllers' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(71,60): error MEM0001: Event 'ElementChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(34,13): error MEM0002: Member '_secondaryToolbar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(39,16): error MEM0002: Member '_mauiContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(41,69): error MEM0002: Member 'Mapper' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1104,30): error MEM0001: Event 'Appearing' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1115,30): error MEM0001: Event 'Disappearing' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1746,30): error MEM0002: Member '_bar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1747,25): error MEM0002: Member '_child' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1748,16): error MEM0002: Member '_icon' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1709,19): error MEM0002: Member 'NavBarLabel' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(15,15): error MEM0002: Member '_bgImage' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(14,22): error MEM0002: Member '_blurView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(16,26): error MEM0002: Member '_shellContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(18,19): error MEM0002: Member '_footerView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.iOS.cs(858,28): error MEM0002: Member '_dontCollectMePlease' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(17,19): error MEM0002: Member '_headerView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(22,12): error MEM0002: Member '_uIViews' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(20,28): error MEM0002: Member '_tableViewController' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(23,29): error MEM0001: Event 'WillAppear' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(24,29): error MEM0001: Event 'WillDisappear' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Platform/iOS/ControlsModalWrapper.cs(14,25): error MEM0002: Member '_modal' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(122,26): error MEM0002: Member '_flyoutAnimation' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(197,26): error MEM0002: Member 'PanGestureRecognizer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(343,34): error MEM0002: Member '_flyoutTransition' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(203,10): error MEM0002: Member 'TapoffView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/CustomPressGestureRecognizer.cs(12,11): error MEM0002: Member '_target' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(144,17): error MEM0002: Member 'Context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/CustomPressGestureRecognizer.cs(25,31): error MEM0002: Member 'action' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(148,31): error MEM0002: Member 'Flyout' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(146,20): error MEM0002: Member 'Detail' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(47,26): error MEM0002: Member '_context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(49,33): error MEM0002: Member '_appearanceTracker' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(56,34): error MEM0002: Member 'CurrentRenderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs(16,24): error MEM0002: Member '_viewHandler' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(29,26): error MEM0002: Member '_context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs(365,24): error MEM0002: Member 'Handler' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(26,17): error MEM0002: Member '_shellContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(32,24): error MEM0002: Member '_isAnimatingOut' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(27,10): error MEM0002: Member '_blurView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(28,10): error MEM0002: Member '_containerArea' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(34,29): error MEM0002: Member '_tracker' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(40,26): error MEM0002: Member '_pageAnimation' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(31,27): error MEM0002: Member '_header' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(54,17): error MEM0002: Member '_context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(671,36): error MEM0002: Member '_parent' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(59,33): error MEM0002: Member '_appearanceTracker' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(672,24): error MEM0002: Member '_shouldPop' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(690,34): error MEM0002: Member '_self' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(68,29): error MEM0002: Member '_renderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(14,26): error MEM0002: Member '_context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(80,22): error MEM0002: Member '_pendingViewControllers' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(15,33): error MEM0002: Member '_source' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(17,19): error MEM0002: Member '_onElementSelected' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(14,26): error MEM0002: Member '_context' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(15,28): error MEM0002: Member '_onElementSelected' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(26,43): error MEM0001: Event 'ScrolledEvent' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(235,11): error MEM0002: Member '_line' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(11,24): error MEM0002: Member '_renderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(12,10): error MEM0002: Member '_bindingContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerView.cs(13,24): error MEM0002: Member '_renderer' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerView.cs(14,10): error MEM0002: Member '_platformView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerView.cs(18,31): error MEM0001: Event 'HeaderSizeChanged' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(16,24): error MEM0002: Member 'TableView' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(14,36): error MEM0002: Member 'ViewMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(15,24): error MEM0002: Member 'IndexPath' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(60,10): error MEM0002: Member '_bar' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(59,26): error MEM0002: Member '_shellContext' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(61,10): error MEM0002: Member '_bottomShadow' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(49,37): error MEM0001: Event 'ItemSelected' could cause memory leaks in an NSObject subclass. Remove the event or add the [UnconditionalSuppressMessage("Memory", "MA0001")] attribute with a justification as to why the event will not leak.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(325,19): error MEM0002: Member 'Label' could cause memory leaks in an NSObject subclass. Remove the member, store the value as a WeakReference, or add the [UnconditionalSuppressMessage("Memory", "MA0002")] attribute with a justification as to why the member will not leak.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(109,27): error MEM0003: Subscribing to events with instance method 'PageOnSizeChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(177,45): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewModelRenderer.cs(43,26): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(21,31): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/UIContainerCell.cs(100,36): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/iOS/VisualElementRenderer.cs(79,26): error MEM0003: Subscribing to events with instance method 'OnSizeChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/iOS/VisualElementRenderer.cs(80,29): error MEM0003: Subscribing to events with instance method 'OnBatchCommitted' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Platform/iOS/ControlsModalWrapper.cs(59,29): error MEM0003: Subscribing to events with instance method 'OnModalPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(53,29): error MEM0003: Subscribing to events with instance method 'OnShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(56,58): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutRenderer.cs(69,47): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(78,30): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(79,27): error MEM0003: Subscribing to events with instance method 'OnPagesChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(40,37): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(31,38): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(32,69): error MEM0003: Subscribing to events with instance method 'OnNavigationRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(86,38): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(87,32): error MEM0003: Subscribing to events with instance method 'OnNavigated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(88,33): error MEM0003: Subscribing to events with instance method 'OnNavigating' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutContentRenderer.cs(143,35): error MEM0003: Subscribing to events with instance method 'OnFooterMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(129,64): error MEM0003: Subscribing to events with instance method '' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(130,29): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(177,40): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs(200,57): error MEM0003: Subscribing to events with instance method 'MeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(96,38): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(97,32): error MEM0003: Subscribing to events with instance method 'OnNavigated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(98,33): error MEM0003: Subscribing to events with instance method 'OnNavigating' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(150,64): error MEM0003: Subscribing to events with instance method 'OnProxyCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/iOS/Extensions/ToolbarItemExtensions.cs(43,29): error MEM0003: Subscribing to events with instance method 'OnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs(534,52): error MEM0003: Subscribing to events with instance method 'HandleFlyoutPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSearchResultsRenderer.cs(215,41): error MEM0003: Subscribing to events with instance method 'OnListProxyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(55,43): error MEM0003: Subscribing to events with instance method 'HandleShellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/CellTableViewCell.cs(39,31): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(276,45): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(33,42): error MEM0003: Subscribing to events with instance method 'OnFlyoutItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewController.cs(34,29): error MEM0003: Subscribing to events with instance method 'OnScrolled' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs(328,39): error MEM0003: Subscribing to events with instance method 'OnDisplayedPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs(181,35): error MEM0003: Subscribing to events with instance method 'OnViewMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(245,33): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(247,50): error MEM0003: Subscribing to events with instance method 'OnItemsCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/StructuredItemsViewController.cs(141,40): error MEM0003: Subscribing to events with instance method 'OnFormsElementMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs(387,39): error MEM0003: Subscribing to events with instance method 'OnDisplayedPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(199,53): error MEM0003: Subscribing to events with instance method 'OnShellSectionItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootHeader.cs(202,36): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1524,29): error MEM0003: Subscribing to events with instance method 'OnRefreshingChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(101,36): error MEM0003: Subscribing to events with instance method 'OnShellSectionPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRootRenderer.cs(102,53): error MEM0003: Subscribing to events with instance method 'OnShellSectionItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(238,35): error MEM0003: Subscribing to events with instance method 'OnScrollToRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(241,41): error MEM0003: Subscribing to events with instance method 'OnCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(242,48): error MEM0003: Subscribing to events with instance method 'OnGroupedCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/TabbedPage/iOS/TabbedRenderer.cs(304,28): error MEM0003: Subscribing to events with instance method 'OnPagePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(143,74): error MEM0003: Subscribing to events with instance method 'OnContextItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(177,29): error MEM0003: Subscribing to events with instance method 'OnCellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(178,75): error MEM0003: Subscribing to events with instance method 'OnContextItemsChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ViewCellRenderer.cs(199,34): error MEM0003: Subscribing to events with instance method 'ViewCellPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ViewCellRenderer.cs(223,42): error MEM0003: Subscribing to events with instance method 'OnMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(471,38): error MEM0003: Subscribing to events with instance method 'OnFooterMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(510,38): error MEM0003: Subscribing to events with instance method 'OnHeaderMeasureInvalidated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(211,39): error MEM0003: Subscribing to events with instance method 'OnPushRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(212,38): error MEM0003: Subscribing to events with instance method 'OnPopRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(213,44): error MEM0003: Subscribing to events with instance method 'OnPopToRootRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(214,45): error MEM0003: Subscribing to events with instance method 'OnRemovedPageRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(215,51): error MEM0003: Subscribing to events with instance method 'OnInsertPageBeforeRequested' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(228,31): error MEM0003: Subscribing to events with instance method 'HandlePropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs(41,36): error MEM0003: Subscribing to events with instance method 'LayoutOnPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(581,29): error MEM0003: Subscribing to events with instance method 'OnButtonActivated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ContextActionCell.cs(610,25): error MEM0003: Subscribing to events with instance method 'OnButtonActivated' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1002,26): error MEM0003: Subscribing to events with instance method 'OnItemSelected' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellRenderer.cs(266,31): error MEM0003: Subscribing to events with instance method 'OnElementPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1770,26): error MEM0003: Subscribing to events with instance method 'OnTitleViewParentSet' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1096,33): error MEM0003: Subscribing to events with instance method 'HandleChildPropertyChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs(1411,32): error MEM0003: Subscribing to events with instance method 'OnShortNamesCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs(1189,35): error MEM0003: Subscribing to events with instance method 'TrackerOnCollectionChanged' could cause memory leaks in an NSObject subclass. Remove the subscription or convert the method to a static method.

@samhouts samhouts added the stale Indicates a stale issue/pr and will be closed soon label Dec 14, 2023
@rmarinho
Copy link
Member

/rebase

@Eilon Eilon added the t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) label May 10, 2024
@PureWeen PureWeen added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions legacy-area-perf Startup / Runtime performance memory-leak 💦 Memory usage grows / objects live forever platform/iOS 🍎 stale Indicates a stale issue/pr and will be closed soon t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants