Skip to content

[iOS] Fix MediaPicker.PickPhotosAsync returning empty list when selecting 4+ images with CompressionQuality set - #34281

Merged
kubaflo merged 2 commits into
dotnet:inflight/currentfrom
Vignesh-SF3580:fix-33954
Mar 14, 2026
Merged

kubaflo merged 2 commits into
dotnet:inflight/currentfrom
Vignesh-SF3580:fix-33954

Addressed review concerns.

1edf860
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Mar 14, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Build Failures

maui-pr / Run Helix Unit Tests / Windows Helix Unit Tests (Debug) / 🛠️ Build BuildTasks

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌src\Controls\src\Core\Handlers\Items2\iOS\LayoutFactory2.cs(584,26): error CS0102: The type 'LayoutFactory2.CustomUICollectionViewCompositionalLayout' already contains a definition for 'CollectionViewContentSize'

maui-pr / Run Helix Unit Tests / Windows Helix Unit Tests (Release) / 🛠️ Build BuildTasks

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌src\Controls\src\Core\Handlers\Items2\iOS\LayoutFactory2.cs(584,26): error CS0102: The type 'LayoutFactory2.CustomUICollectionViewCompositionalLayout' already contains a definition for 'CollectionViewContentSize'

maui-pr / Pack .NET MAUI / Pack macOS / Pack

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs(584,26): error CS0102: The type 'LayoutFactory2.CustomUICollectionViewCompositionalLayout' already contains a definition for 'CollectionViewContentSize'

9 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [maui-pr] [maui-pr]

Test Failures (5 tests failed)

🔹 [All failing tests from maui-pr]

    ❌ Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_BlazorDebug [Details] [50.33% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Project Test767419900e51919912023.csproj failed to run. Check test output/attachments for errors.
    CallStack
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS(String id, String config, String framework, RuntimeVariant runtimeVariant, String trimMode) in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 154
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_BlazorDebug() in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 83
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    ❌ Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_BlazorRelease [Details] [50.62% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Project Test0ae41d147f6255799213.csproj failed to run. Check test output/attachments for errors.
    CallStack
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS(String id, String config, String framework, RuntimeVariant runtimeVariant, String trimMode) in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 154
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_BlazorRelease() in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 86
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    ❌ Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiDebug [Details] [51.11% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Project Test1c38cf86b2f1763997275.csproj failed to run. Check test output/attachments for errors.
    CallStack
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS(String id, String config, String framework, RuntimeVariant runtimeVariant, String trimMode) in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 154
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiDebug() in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 74
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    ❌ Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiNativeAOT [Details] [50.69% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Project Testc5386c0233b488737169.csproj failed to run. Check test output/attachments for errors.
    CallStack
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS(String id, String config, String framework, RuntimeVariant runtimeVariant, String trimMode) in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 154
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiNativeAOT() in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 105
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    ❌ Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiReleaseTrimFull [Details] [50.76% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Project Testcd25a1efb26311447514.csproj failed to run. Check test output/attachments for errors.
    CallStack
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS(String id, String config, String framework, RuntimeVariant runtimeVariant, String trimMode) in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 154
       at Microsoft.Maui.IntegrationTests.AppleTemplateTests.RunOniOS_MauiReleaseTrimFull() in /_/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs:line 80
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Was this helpful? Yes No