dotnet / performance

This repo contains benchmarks used for testing the performance of all .NET Runtimes
MIT License
686 stars 267 forks source link

MAUI CoreCLR iOS scenarios fail to build on latest .NET 8 SDK #4367

Closed caaavik-msft closed 1 month ago

caaavik-msft commented 1 month ago

The issue does not occur on the runs using Mono or the latest .NET 9 SDK which seem to all be using the same version of xcode.

An example build failure: https://dev.azure.com/dnceng/internal/_build/results?buildId=2507587&view=logs&j=c3e103e2-e9d9-5879-4a7a-258d53a5b68f&t=3d348712-4edb-5532-b3b0-a8cbf948606c

Error:

[2024/08/02 16:56:51][INFO] $ dotnet publish /Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj --configuration Release /p:NuGetPackageRoot=/Users/runner/work/1/s/artifacts/packages/ /p:RestorePackagesPath=/Users/runner/work/1/s/artifacts/packages/ /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 --output /Users/runner/work/1/s/CorrelationStaging/payload/scenarios_out/netios --runtime ios-arm64 --framework net8.0-ios /p:_RequireCodeSigning=false /p:ApplicationId=net.dot.xamarintesting --self-contained /p:PublishAot=true /p:PublishAotUsingRuntimePack=true /p:EnableWindowsTargeting=true
[2024/08/02 16:56:52][INFO]   Determining projects to restore...
[2024/08/02 16:56:57][INFO]   Restored /Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj (in 4.78 sec).
[2024/08/02 16:56:58][INFO]   Detected signing identity:
[2024/08/02 16:56:58][INFO]
[2024/08/02 16:56:58][INFO]     Code Signing Key: "" (-)
[2024/08/02 16:56:58][INFO]     Bundle Id: com.companyname.NetiOSDefault
[2024/08/02 16:56:58][INFO]     App Id: com.companyname.NetiOSDefault
[2024/08/02 16:58:33][INFO]   NetiOSDefault -> /Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/bin/Release/net8.0-ios/ios-arm64/NetiOSDefault.dll
[2024/08/02 16:58:33][INFO]   Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
[2024/08/02 16:58:33][INFO]   Optimizing assemblies for size. This process might take a while.
[2024/08/02 16:58:33][INFO] ILLINK : warning MT0079: The recommended Xcode version for Microsoft.iOS 17.5.8018 is Xcode 15.4 or later. The current Xcode version (found in /Applications/Xcode_15.0.app/Contents/Developer) is 15.0.1. [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:33][INFO]
[2024/08/02 16:58:38][INFO] ILLink : iOS error IL7000: An error occured while executing the custom linker steps. Please review the build log for more information. [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/AutomaticAssessmentConfiguration/AEAssessmentConfiguration.g.cs(203): error MT4162: The type 'AutomaticAssessmentConfiguration.AEAssessmentParticipantConfiguration' (used as a parameter in AutomaticAssessmentConfiguration.AEAssessmentConfiguration.SetConfiguration) is not available in iOS 17.0 (it was introduced in iOS 17.5). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(146): error MT4162: The type 'CoreML.MLComputePlanDeviceUsage' (used as a return type in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(146): error MT4162: The type 'CoreML.MLModelStructureNeuralNetworkLayer' (used as a parameter in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(161): error MT4162: The type 'CoreML.MLComputePlanDeviceUsage' (used as a return type in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(161): error MT4162: The type 'CoreML.MLModelStructureProgramOperation' (used as a parameter in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(176): error MT4162: The type 'CoreML.MLComputePlanCost' (used as a return type in CoreML.MLComputePlan.GetEstimatedCost) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CoreML/MLComputePlan.g.cs(176): error MT4162: The type 'CoreML.MLModelStructureProgramOperation' (used as a parameter in CoreML.MLComputePlan.GetEstimatedCost) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CarPlay/CPNavigationSession.g.cs(150): error MT4162: The type 'CarPlay.CPLaneGuidance[]' (used as a parameter in CarPlay.CPNavigationSession.AddLaneGuidances) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CarPlay/CPNavigationSession.g.cs(259): error MT4162: The type 'CarPlay.CPRouteInformation' (used as a parameter in CarPlay.CPNavigationSession.ResumeTrip) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CarPlay/CPRouteInformation.g.cs(143): error MT4162: The type 'CarPlay.CPLaneGuidance[]' (used as a parameter in CarPlay.CPRouteInformation..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/CarPlay/CPRouteInformation.g.cs(143): error MT4162: The type 'CarPlay.CPLaneGuidance' (used as a parameter in CarPlay.CPRouteInformation..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/AuthenticationServices/ASWebAuthenticationSession.g.cs(176): error MT4162: The type 'AuthenticationServices.ASWebAuthenticationSessionCallback' (used as a parameter in AuthenticationServices.ASWebAuthenticationSession..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]
[2024/08/02 16:58:38][INFO] ILLINK : error MT2431: The linker step 'ManagedRegistrar' failed during processing: One or more errors occurred. (The type 'AutomaticAssessmentConfiguration.AEAssessmentParticipantConfiguration' (used as a parameter in AutomaticAssessmentConfiguration.AEAssessmentConfiguration.SetConfiguration) is not available in iOS 17.0 (it was introduced in iOS 17.5). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLComputePlanDeviceUsage' (used as a return type in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLModelStructureNeuralNetworkLayer' (used as a parameter in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLComputePlanDeviceUsage' (used as a return type in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLModelStructureProgramOperation' (used as a parameter in CoreML.MLComputePlan.ComputeDeviceUsage) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLComputePlanCost' (used as a return type in CoreML.MLComputePlan.GetEstimatedCost) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CoreML.MLModelStructureProgramOperation' (used as a parameter in CoreML.MLComputePlan.GetEstimatedCost) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CarPlay.CPLaneGuidance[]' (used as a parameter in CarPlay.CPNavigationSession.AddLaneGuidances) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CarPlay.CPRouteInformation' (used as a parameter in CarPlay.CPNavigationSession.ResumeTrip) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CarPlay.CPLaneGuidance[]' (used as a parameter in CarPlay.CPRouteInformation..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'CarPlay.CPLaneGuidance' (used as a parameter in CarPlay.CPRouteInformation..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         ) (The type 'AuthenticationServices.ASWebAuthenticationSessionCallback' (used as a parameter in AuthenticationServices.ASWebAuthenticationSession..ctor) is not available in iOS 17.0 (it was introduced in iOS 17.4). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).
[2024/08/02 16:58:38][INFO]         )
[2024/08/02 16:58:38][INFO] /Users/runner/work/1/s/artifacts/packages/microsoft.net.illink.tasks/8.0.7/build/Microsoft.NET.ILLink.targets(87,5): error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. [/Users/runner/work/1/s/CorrelationStaging/payload/performance/src/scenarios/netios/app/NetiOSDefault.csproj]
caaavik-msft commented 1 month ago

@jonathanpeppers Would you be able to help route this issue?

jonathanpeppers commented 1 month ago

@caaavik-msft can you use a newer Xcode?

ILLINK : warning MT0079: The recommended Xcode version for Microsoft.iOS 17.5.8018 is Xcode 15.4 or later.

I believe 15.4 is required with the latest iOS workload.