iOS App screen size problems after upgrading to .net8.0

No_Focus 25 Reputation points
2023-11-23T10:53:10.2366667+00:00

I have noted that after an upgrade to .net8.0 that my iOS app has a size issue. This persists even after returning to .net7.0 and gets resolved after reverting code before the upgrade.

After some digging myself i have noted that some files are not being generated anymore inside obj/{net version}-ios/{RuntimeIdentifier}/resizetizer, i am missing the f and sp folders.

My question is if this is a known bug on the iOS side and if the missing files have something to do with the problem i am having.

Image of problem:

User's image

before upgrade:

User's image

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,829 questions
{count} votes

1 answer

Sort by: Most helpful
  1. No_Focus 25 Reputation points
    2023-12-01T13:22:50.6633333+00:00

    After some digging, testing and thinking i have found the cause of the problem.

    It has to do with a restored package inside my app: <PackageReference Include="PCLCrypto" Version="2.0.147" />. This made use of a differed target framework which likely resulted in these problems.

    So for me the action is to find a alternative to this package/code that does not conflict with the targeted framework.

    Screenshot of the restored packages:User's image

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.