Skip to content

Building a NET6/NET7 iOS project on agent M2 ARM 64 hangs/freezes #8970

Closed as not planned

Description

From @vincentcastagna on Thu, 16 Mar 2023 14:21:20 GMT

Steps to Reproduce

  1. Create an agent on M2 ARM 64 agent (3.214.0)
  2. Build a .NET6/.NET7 iOS project
  3. Notice the build MIGHT hang sometimes on Apple Clang process

We don't face the issue on X64 on prem agents or even hosted.
There is no real consistency on when the build will hangs or not. It depends on the run.

We already tried removing Trimmer, which doesn't seem to have any effect. With or without, the behavior is the same.

Expected Behavior

Build should never hang

Actual Behavior

Build hangs sometimes and never ends, until timeout

Environment

  • Xcode 14.2
  • Visual Studio for mac 17.5.1
  • This is the .csproj that we try to build

AGENT CAPABILITIES :

Agent.Name MACOS-2C83F31C-42D1-4BA5-9686-611EB3632BD4    
  Agent.Version 3.214.0  
  _ ./externals/node16/bin/node  
  __CF_USER_TEXT_ENCODING 0x1F5:0x0:0x52  
 
  CP_HOME_DIR /Users/administrator/agent/_work/_temp/.cocoapods  
  curl /usr/bin/curl  
  dotnet /usr/local/share/dotnet/dotnet  
  DOTNET_ROOT /usr/local/share/dotnet  
  git /usr/bin/git  
  HOME /Users/administrator  
  InteractiveSession False  
  java /usr/bin/java  
  JDK /usr/bin/javac  
  LANG en_CA.UTF-8  
  LOGNAME administrator  
  make /usr/bin/make  
  MSBuild /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild  
  NUGET_HTTP_CACHE_PATH /Users/administrator/agent/_work/_temp/.nuget-http-cache  
  NUGET_PACKAGES /Users/administrator/agent/_work/_temp/.nuget  
  PATH /Users/administrator/.rbenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands  
  PWD /Users/administrator/agent  
  python3 /usr/bin/python3  
  rake /Users/administrator/.rbenv/shims/rake  
  ruby /Users/administrator/.rbenv/shims/ruby  
  sh /bin/sh  
  SHELL /bin/zsh  
  SSH_AUTH_SOCK /private/tmp/com.apple.launchd.MgBJHUlv5M/Listeners  
  TMPDIR /var/folders/33/ph0v51hd30n2frx557550mnc0000gn/T/  
  USER administrator  
  VSTS_AGENT_SVC 1  
  Xamarin.iOS /Applications/Visual Studio.app/Contents/MacOS/vstool  
  Xamarin.iOS_Version 16.1.1  
  XamarinBuildDownloadDir /Users/administrator/agent/_work/_temp/.xbcache  
  xcode /Applications/Xcode.app/Contents/Developer  
  Xcode_Version 14.2  
  XPC_FLAGS 0x0  
  XPC_SERVICE_NAME 0

Build Logs

MSBUILD BINLOG (seem corrupted ...)

build-net7.0-ios.zip

Example Project (If Possible)

https://github.com/nventive/UnoApplicationTemplate/blob/dev/vica/make-usage-new-agents-net7.0/src/app/ApplicationTemplate.Mobile/ApplicationTemplate.Mobile.csproj

Copied from original issue xamarin/xamarin-macios#17825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

needs-triageHave yet to determine what bucket this goes in.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions