KEMBAR78
Application Built with xCode 26 & .NET 9 Doesn't Show Images · Issue #32106 · dotnet/maui · GitHub
Skip to content

Application Built with xCode 26 & .NET 9 Doesn't Show Images #32106

@mitchelsellers

Description

@mitchelsellers

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

.NET 9.0.306, MAUI Workload 9.0.306

Description

We have an application that was migrated from Xamarin to MAUI. During that process, the images were managed in the following manner.

Android

All images are in the /Platform/Android/Resources/Drawable_** folders.

Images contain a single copy and are named such as accuracy.png

iOS

All images are in the /Platform/iOS/Resources folder.

Each image has 3 sizes with the same naming process accuracy.png 'accuracy_2x.pngandaccuracy_3x.png'

.csproj configuration

Within the csproj there are the following entries that "remove" the iOS images and add them back as MAUI Images

	  <None Remove="Platforms\iOS\Resources\accuracy.png" />
	  <None Remove="Platforms\iOS\Resources\accuracy_2x.png" />
	  <None Remove="Platforms\iOS\Resources\accuracy_3x.png" />
	  <MauiImage Include="Platforms\iOS\Resources\accuracy.png" />
	  <MauiImage Include="Platforms\iOS\Resources\accuracy_2x.png" />
	  <MauiImage Include="Platforms\iOS\Resources\accuracy_3x.png" />
```

## Existing Behavior

Using this process, the team was able to continue using images such as the one above, using code like the following.

```` xaml
<Image
                    Source="accuracy"
                    WidthRequest="100"
                    HeightRequest="100" />

Everything has worked correctly from at least .NET 8.0 -> 9.0.305 until xCode 16.

Failing Behavior

After updating the project to 9.0.306 & xCode 26, the application builds without any noticeable additional errors. The Android application artifact works well; however, the iOS application is no longer able to render ANY image asset.

Expected Behavior

This process was used, following older documentation on image management, due to the extremely large number of images used (This application has more than 100k monthly devices in use, so limiting risk and scope was a goal in the migration) We did not expect to see a complete loss of resources, with a midline release within the same version of .NET.

Steps to Reproduce

  1. Build the project using 9.0.305
  2. Validate functionality
  3. Update to target 9.0.306
  4. Android is unaffected, but iOS fails to render ANY images.

Did you find any workaround?

The only workaround we have found so far is to roll back, we are investigating completely rebuilding all assets to have a single file per with the single project structure, but that isn't viable at this time.

Build logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerplatform/ios

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions