Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentException: maccatalyst does not have a valid platform name #90313

Closed
steveharter opened this issue Aug 10, 2023 · 3 comments
Closed

ArgumentException: maccatalyst does not have a valid platform name #90313

steveharter opened this issue Aug 10, 2023 · 3 comments
Labels
area-Infrastructure blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS

Comments

@steveharter
Copy link
Member

steveharter commented Aug 10, 2023

Error like:

src/mono/msbuild/common/LibraryBuilder.targets(28,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "LibraryBuilderTask" task failed unexpectedly.
System.ArgumentException: maccatalyst does not have a valid platform name
   at Microsoft.Apple.Build.AppleSdk.GetPlatformName(String targetOS) in /_/src/tasks/MobileBuildTasks/Apple/AppleSdk.cs:line 138
   at Microsoft.Apple.Build.AppleSdk..ctor(String targetOS, TaskLoggingHelper logger) in /_/src/tasks/MobileBuildTasks/Apple/AppleSdk.cs:line 25
   at Microsoft.Apple.Build.AppleProject..ctor(String projectName, String runtimeIdentifier, TaskLoggingHelper logger) in /_/src/tasks/MobileBuildTasks/Apple/AppleProject.cs:line 31
   at LibraryBuilderTask.BuildAppleLibrary(List`1 sources, List`1 libs, List`1 linkerArgs) in /_/src/tasks/LibraryBuilder/LibraryBuilder.cs:line 401
   at LibraryBuilderTask.Execute() in /_/src/tasks/LibraryBuilder/LibraryBuilder.cs:line 156
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "maccatalyst does not have a valid platform name",
  "BuildRetry": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974
Error message validated: maccatalyst does not have a valid platform name
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/10/2023 2:07:01 PM UTC

@steveharter steveharter added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Infrastructure os-ios Apple iOS Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 10, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 10, 2023
@ghost
Copy link

ghost commented Aug 10, 2023

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Issue Details

Error like:

src/mono/msbuild/common/LibraryBuilder.targets(28,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "LibraryBuilderTask" task failed unexpectedly.
System.ArgumentException: maccatalyst does not have a valid platform name
   at Microsoft.Apple.Build.AppleSdk.GetPlatformName(String targetOS) in /_/src/tasks/MobileBuildTasks/Apple/AppleSdk.cs:line 138
   at Microsoft.Apple.Build.AppleSdk..ctor(String targetOS, TaskLoggingHelper logger) in /_/src/tasks/MobileBuildTasks/Apple/AppleSdk.cs:line 25
   at Microsoft.Apple.Build.AppleProject..ctor(String projectName, String runtimeIdentifier, TaskLoggingHelper logger) in /_/src/tasks/MobileBuildTasks/Apple/AppleProject.cs:line 31
   at LibraryBuilderTask.BuildAppleLibrary(List`1 sources, List`1 libs, List`1 linkerArgs) in /_/src/tasks/LibraryBuilder/LibraryBuilder.cs:line 401
   at LibraryBuilderTask.Execute() in /_/src/tasks/LibraryBuilder/LibraryBuilder.cs:line 156
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "maccatalyst does not have a valid platform name",
  "BuildRetry": false
}
Author: steveharter
Assignees: -
Labels:

blocking-clean-ci, area-Infrastructure, os-ios, Known Build Error

Milestone: -

@ViktorHofer
Copy link
Member

cc @steveisok

@ivanpovazan
Copy link
Member

Closing as fixed via: #90237

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Oct 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS
Projects
None yet
Development

No branches or pull requests

3 participants