Skip to content

Show a better error with invalid SupportedOSPlatformVersion values #23626

Description

@rolfbjarne

A SupportedOSPlatformVersion value with a newline:

    <SupportedOSPlatformVersion>
13.0</SupportedOSPlatformVersion>

will make the build fail with:

    ILLink : unknown error IL7000: An error occurred while executing the custom linker steps. Please review the build log for more information.
    ILLINK : error MT2301: The linker step 'Setup' failed during processing: Invalid syntax for line 12 in /Users/rolf/test/dotnet/ios-plain/obj/Debug/net9.0-ios/iossimulator-arm64/custom-linker-options.txt: No equals sign.
    /Users/rolf/packages/microsoft.net.illink.tasks/9.0.6/build/Microsoft.NET.ILLink.targets(96,5): error NETSDK1144: Optimizing assemblies for size failed.

which is not helpful at all.

We should show a better error here.

binlog:

msbuild.binlog.zip

Activity

  1. added
    enhancement
    on Aug 18, 2025
  2. added theissue type on Aug 18, 2025
  3. added this to the .NET 11 milestone on Aug 18, 2025
  4. Luckre commented on Aug 21, 2025

    @Luckre

    Why is the minimum supported iOS version set to 13? If you review Apple’s device history:
    https://en.wikipedia.org/wiki/List_of_iPhone_models
    You’ll see that no currently supported iPhone or iPad is limited to iOS 13. For example, the iPhone 6 only supports up to iOS 12, while the iPhone 6s supports up to iOS 15. Given that iOS 13 is no longer relevant for most users, I recommend updating the minimum supported version to iOS 15. In practice, it's extremely rare to encounter devices still running iOS 13. Please consider forwarding this to your development team.

    Thank you

  5. rolfbjarne commented on Aug 21, 2025

    @rolfbjarne
    MemberAuthor

    Why is the minimum supported iOS version set to 13?

    For this particular issue the problem isn't the number, but the newline next to it.

  6. added a commit that references this issue on Sep 3, 2026
    59abedf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions