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

CI build failure: Build MacCatalyst x64 Release AllSubsets_Mono - XcodeBuildApp task failed unexpectedly - Could not find System.Runtime.Tests.app #78778

Closed
carlossanlop opened this issue Nov 23, 2022 · 3 comments · Fixed by #79084
Labels
arch-x64 area-Build-mono 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-maccatalyst MacCatalyst OS
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Nov 23, 2022

Hit this in an unrelated PR in main: #78744

Running: cmake -S. -BNormalTestAppBundles -GXcode -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=x86_64
  Using working directory: /Users/runner/work/1/s/artifacts/bundles//tests.all/
  Exit code: 0
Running: xcodebuild ONLY_ACTIVE_ARCH=YES CODE_SIGN_IDENTITY="-" -scheme "System.Runtime.Tests" -destination "generic/platform=macOS,name=Any Mac,variant=Mac Catalyst" -UseModernBuildSystem=YES -archivePath "/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle" -derivedDataPath "/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle" IPHONEOS_DEPLOYMENT_TARGET=13.5 -configuration Release
  Using working directory: /Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle
  Exit code: 0
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018: The "XcodeBuildApp" task failed unexpectedly.
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle/Release-maccatalyst/System.Runtime.Tests.app'.
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath, Boolean isCaseSensitiveRename)
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath)
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Xcode.BuildAppBundle(String xcodePrjPath, Boolean optimized, String devTeamProvisioning, String destination) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 537
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at XcodeBuildApp.Execute() in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 108
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
##[error]src/libraries/tests.proj(735,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "XcodeBuildApp" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle/Release-maccatalyst/System.Runtime.Tests.app'.
   at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath, Boolean isCaseSensitiveRename)
   at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath)
   at Xcode.BuildAppBundle(String xcodePrjPath, Boolean optimized, String devTeamProvisioning, String destination) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 537
   at XcodeBuildApp.Execute() in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 108
   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 FAILED.
{
  "ErrorMessage": "The \"XcodeBuildApp\" task failed unexpectedly.",
  "BuildRetry": false
}

Report

Build Definition Step Name Console log Pull Request
98927 dotnet/runtime Build product Log #79090
98915 dotnet/runtime Build product Log #79088
98840 dotnet/runtime Build product Log #74579
98581 dotnet/runtime Build product Log #79061
97485 dotnet/runtime Build product Log #78918
98706 dotnet/runtime Build product Log #79076
98698 dotnet/runtime Build product Log #78915
98688 dotnet/runtime Build product Log
98678 dotnet/runtime Build product Log #78852
98671 dotnet/runtime Build product Log
98663 dotnet/runtime Build product Log #78354
98639 dotnet/runtime Build product Log #79074
98594 dotnet/runtime Build product Log #79048
98571 dotnet/runtime Build product Log #79071
98547 dotnet/runtime Build product Log #79069
98494 dotnet/runtime Build product Log #78782
98450 dotnet/runtime Build product Log
98405 dotnet/runtime Build product Log
98388 dotnet/runtime Build product Log #79061
98378 dotnet/runtime Build product Log #79026
98353 dotnet/runtime Build product Log #78995
98326 dotnet/runtime Build product Log #79051
98314 dotnet/runtime Build product Log #79048
98088 dotnet/runtime Build product Log #79024
98229 dotnet/runtime Build product Log #79046
97948 dotnet/runtime Build product Log #79049
98140 dotnet/runtime Build product Log
98134 dotnet/runtime Build product Log
98129 dotnet/runtime Build product Log
97393 dotnet/runtime Build product Log #78087
98103 dotnet/runtime Build product Log #79007
98080 dotnet/runtime Build product Log #77130
98056 dotnet/runtime Build product Log #79057
98062 dotnet/runtime Build product Log
98047 dotnet/runtime Build product Log #74579
96320 dotnet/runtime Build product Log #78852
97985 dotnet/runtime Build product Log #79019
97981 dotnet/runtime Build product Log #79051
97922 dotnet/runtime Build product Log #78829
97905 dotnet/runtime Build product Log #78915
97870 dotnet/runtime Build product Log #79044
97862 dotnet/runtime Build product Log #79044
97841 dotnet/runtime Build product Log #79042
97253 dotnet/runtime Build product Log #79019
97812 dotnet/runtime Build product Log #79039
97811 dotnet/runtime Build product Log #79040
97783 dotnet/runtime Build product Log #79036
97758 dotnet/runtime Build product Log #79035
97680 dotnet/runtime Build product Log #78020
97666 dotnet/runtime Build product Log #78817
97662 dotnet/runtime Build product Log #78915
97636 dotnet/runtime Build product Log #78850
93797 dotnet/runtime Build product Log #78857
96362 dotnet/runtime Build product Log #78646
97564 dotnet/runtime Build product Log #73215
97520 dotnet/runtime Build product Log #78915
97491 dotnet/runtime Build product Log #79027
97479 dotnet/runtime Build product Log
97460 dotnet/runtime Build product Log #78974
97453 dotnet/runtime Build product Log
97430 dotnet/runtime Build product Log #78793
97408 dotnet/runtime Build product Log #79026
97404 dotnet/runtime Build product Log #78861
97383 dotnet/runtime Build product Log #78863
97377 dotnet/runtime Build product Log #79025
97373 dotnet/runtime Build product Log #79024
97359 dotnet/runtime Build product Log #78793
97337 dotnet/runtime Build product Log
97325 dotnet/runtime Build product Log
97308 dotnet/runtime Build product Log #79021
97206 dotnet/runtime Build product Log #79013
97194 dotnet/runtime Build product Log #78860
97200 dotnet/runtime Build product Log #78958
97179 dotnet/runtime Build product Log #78793
97121 dotnet/runtime Build product Log #78996
97089 dotnet/runtime Build product Log #79009
97087 dotnet/runtime Build product Log #79008
97063 dotnet/runtime Build product Log #78411
97057 dotnet/runtime Build product Log #78943
97043 dotnet/runtime Build product Log #79007
97029 dotnet/runtime Build product Log #78782
96953 dotnet/runtime Build product Log #79002
96960 dotnet/runtime Build product Log
96946 dotnet/runtime Build product Log #77130
96951 dotnet/runtime Build product Log
96884 dotnet/runtime Build product Log #78946
96848 dotnet/runtime Build product Log #78998
96847 dotnet/runtime Build product Log #78997
96785 dotnet/runtime Build product Log
96767 dotnet/runtime Build product Log #78411
96723 dotnet/runtime Build product Log #78983
96712 dotnet/runtime Build product Log #78943
96704 dotnet/runtime Build product Log
96650 dotnet/runtime Build product Log #78986
96634 dotnet/runtime Build product Log #78984
96573 dotnet/runtime Build product Log #78982
93237 dotnet/runtime Build product Log #78320
96538 dotnet/runtime Build product Log #78968
96522 dotnet/runtime Build product Log #78974
96495 dotnet/runtime Build product Log #78888
Displaying 100 of 258 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
40 214 258
@carlossanlop carlossanlop added arch-x64 area-Build-mono os-maccatalyst MacCatalyst OS Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 23, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 23, 2022
@ghost
Copy link

ghost commented Nov 23, 2022

Tagging subscribers to 'os-maccatalyst': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Hit this in an unrelated PR in main: #78744

Running: cmake -S. -BNormalTestAppBundles -GXcode -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=x86_64
  Using working directory: /Users/runner/work/1/s/artifacts/bundles//tests.all/
  Exit code: 0
Running: xcodebuild ONLY_ACTIVE_ARCH=YES CODE_SIGN_IDENTITY="-" -scheme "System.Runtime.Tests" -destination "generic/platform=macOS,name=Any Mac,variant=Mac Catalyst" -UseModernBuildSystem=YES -archivePath "/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle" -derivedDataPath "/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle" IPHONEOS_DEPLOYMENT_TARGET=13.5 -configuration Release
  Using working directory: /Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle
  Exit code: 0
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018: The "XcodeBuildApp" task failed unexpectedly.
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle/Release-maccatalyst/System.Runtime.Tests.app'.
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath, Boolean isCaseSensitiveRename)
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath)
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Xcode.BuildAppBundle(String xcodePrjPath, Boolean optimized, String devTeamProvisioning, String destination) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 537
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at XcodeBuildApp.Execute() in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 108
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
/Users/runner/work/1/s/src/libraries/tests.proj(735,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
##[error]src/libraries/tests.proj(735,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "XcodeBuildApp" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/runner/work/1/s/artifacts/bundles/tests.all/NormalTestAppBundles/System.Runtime.Tests/AppBundle/Release-maccatalyst/System.Runtime.Tests.app'.
   at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath, Boolean isCaseSensitiveRename)
   at System.IO.FileSystem.MoveDirectory(String sourceFullPath, String destFullPath)
   at Xcode.BuildAppBundle(String xcodePrjPath, Boolean optimized, String devTeamProvisioning, String destination) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 537
   at XcodeBuildApp.Execute() in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 108
   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 FAILED.
{
  "ErrorMessage": "The \"XcodeBuildApp\" task failed unexpectedly.",
  "BuildRetry": false
}
Author: carlossanlop
Assignees: -
Labels:

arch-x64, area-Build-mono, os-maccatalyst, Known Build Error

Milestone: -

@jkotas
Copy link
Member

jkotas commented Nov 30, 2022

@steveisok @akoeplinger This has large impact on the CI, failed in 62 jobs in last 24 hours. Could you please take a look?

@steveisok steveisok added this to the 8.0.0 milestone Nov 30, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 30, 2022
@steveisok
Copy link
Member

Yes, will do.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Dec 1, 2022
github-actions bot pushed a commit that referenced this issue Dec 1, 2022
Since AzDO macOS builders where updated to cmake 3.25 we're seeing failures because the .app doesn't end up in the expected output path anymore.
Apply a workaround to move it back to the old location.

Fixes #78778
github-actions bot pushed a commit that referenced this issue Dec 1, 2022
Since AzDO macOS builders where updated to cmake 3.25 we're seeing failures because the .app doesn't end up in the expected output path anymore.
Apply a workaround to move it back to the old location.

Fixes #78778
@ghost ghost locked as resolved and limited conversation to collaborators Dec 31, 2022
carlossanlop pushed a commit that referenced this issue Jan 4, 2023
Since AzDO macOS builders where updated to cmake 3.25 we're seeing failures because the .app doesn't end up in the expected output path anymore.
Apply a workaround to move it back to the old location.

Fixes #78778

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
carlossanlop pushed a commit that referenced this issue Jan 4, 2023
Since AzDO macOS builders where updated to cmake 3.25 we're seeing failures because the .app doesn't end up in the expected output path anymore.
Apply a workaround to move it back to the old location.

Fixes #78778

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-Build-mono 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-maccatalyst MacCatalyst OS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants