-v -v -v -vmacOS-10.15 hosted agent, using the following azure pipeline YAML:trigger:
- none
pool:
vmImage: macOS-10.15
steps:
- task: MSBuild@1
inputs:
solution: mac-aot-test/mac-aot-test.sln
msbuildArguments: /p:Configuration=Release /p:Platform="Any CPU"
Note that this works on a macOS-10.14 agent, but fails on macOS-10.15.
Project is compiled
Project fails to compile with AOT compilation errors
This is the environment used to create the project, not the environment that fails to build it.
=== Visual Studio Enterprise 2019 for Mac ===
Version 8.4.7 (build 17)
Installation UUID: 4614aba5-b57a-4e10-9ee0-10a5d539e24b
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.16.1.25 (issue-7441-d16-3-vsmac / 881172e73)
Package version: 606000166
=== Mono Framework MDK ===
Runtime:
Mono 6.6.0.166 (2019-08/d9001b5ae70) (64-bit)
Package version: 606000166
=== Roslyn (Language Service) ===
3.4.0-beta4-19562-05+ff930dec4565e2bc424ad3bf3e22ecb20542c87d
=== NuGet ===
Version: 5.3.0.6192
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.102/Sdks
SDK Versions:
3.1.102
3.1.100
3.0.101
3.0.100
2.1.701
2.1.700
2.1.505
2.1.504
2.1.503
2.1.302
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.2
3.1.0
3.0.1
3.0.0
2.1.16
2.1.14
2.1.12
2.1.11
2.1.9
2.1.8
2.1.7
2.1.2
=== Xamarin.Profiler ===
Version: 1.6.13.11
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Xamarin.Android ===
Not Installed
=== Microsoft Mobile OpenJDK ===
Java SDK: Not Found
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.4.0.10
Hash: 2c49a7d
Branch: remotes/origin/d16-4
Build date: 2020-02-20 19:25:52 UTC
=== Android Device Manager ===
Version: 16.4.0.32
Hash: 7a5cb8b
Branch: remotes/origin/d16-4
Build date: 2020-02-20 19:26:14 UTC
=== Apple Developer Tools ===
Xcode 11.3 (15712)
Build 11C29
=== Xamarin.Mac ===
Version: 6.10.0.21 (Visual Studio Enterprise)
Hash: 02c4b3bdc
Branch: xcode11.3
Build date: 2020-02-18 14:13:31-0500
=== Xamarin.iOS ===
Version: 13.6.0.12 (Visual Studio Enterprise)
Hash: e3c2b406d
Branch: xcode11.2
Build date: 2019-11-01 00:12:08-0400
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Xamarin Designer ===
Version: 16.4.0.479
Hash: 074544417
Branch: remotes/origin/d16-4
Build date: 2020-01-22 22:50:22 UTC
=== Build Information ===
Release ID: 804070017
Git revision: 35c9b9b9315ec81feec25ebabe131761b304257d
Build date: 2020-02-21 16:06:09+00
Build branch: release-8.4
Xamarin extensions: 35c9b9b9315ec81feec25ebabe131761b304257d
=== Operating System ===
Mac OS X 10.14.6
Darwin 18.7.0 Darwin Kernel Version 18.7.0
Sat Oct 12 00:02:19 PDT 2019
root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
2020-03-18T08:56:44.2578430Z ##[section]Starting: MSBuild
2020-03-18T08:56:44.2588510Z ==============================================================================
2020-03-18T08:56:44.2588870Z Task : MSBuild
2020-03-18T08:56:44.2589130Z Description : Build with MSBuild
2020-03-18T08:56:44.2589370Z Version : 1.161.3
2020-03-18T08:56:44.2589610Z Author : Microsoft Corporation
2020-03-18T08:56:44.2590010Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/msbuild
2020-03-18T08:56:44.2590440Z ==============================================================================
2020-03-18T08:56:44.4430170Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /version /nologo
2020-03-18T08:56:44.4511030Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4511980Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4512710Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4513730Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4514490Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4515220Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4515940Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4516640Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4517750Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4518820Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4519570Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4520370Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4521080Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4521780Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.4522580Z (node:1502) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-18T08:56:44.6165770Z [command]/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test.sln /p:Configuration=Release /p:Platform=Any CPU
2020-03-18T08:56:44.7739500Z Microsoft (R) Build Engine version 16.4.0 for Mono
2020-03-18T08:56:44.7741000Z Copyright (C) Microsoft Corporation. All rights reserved.
2020-03-18T08:56:44.7741460Z
2020-03-18T08:56:45.0745080Z Build started 3/18/2020 8:56:45 AM.
2020-03-18T08:56:45.7198910Z Project "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test.sln" on node 1 (default targets).
2020-03-18T08:56:45.7213380Z ValidateSolutionConfiguration:
2020-03-18T08:56:45.7214880Z Building solution configuration "Release|Any CPU".
2020-03-18T08:56:46.5366080Z Project "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test.sln" (1) is building "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj" (2) on node 1 (default targets).
2020-03-18T08:56:46.5370780Z _BeforeCoreCompileImageAssets:
2020-03-18T08:56:46.5403610Z Directory "obj/Release/actool" doesn't exist. Skipping.
2020-03-18T08:56:46.7143490Z _CoreCompileImageAssets:
2020-03-18T08:56:46.7146480Z Tool /Applications/Xcode.app/Contents/Developer/usr/bin/actool execution started with arguments: --errors --warnings --notices --output-format xml1 --output-partial-info-plist /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/actool/partial-info.plist --app-icon AppIcon --minimum-deployment-target 10.13 --platform macosx --compile /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/actool/bundle /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/actool/cloned-assets/Assets.xcassets
2020-03-18T08:56:55.4936020Z _CoreCompileInterfaceDefinitions:
2020-03-18T08:56:55.4939000Z Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 10.13 --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk --compilation-directory /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/ibtool /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/Main.storyboard
2020-03-18T08:56:58.9333430Z BundleResources Output:
2020-03-18T08:56:58.9334000Z obj/Release/ibtool/Main.storyboardc/MainMenu.nib
2020-03-18T08:56:58.9335450Z obj/Release/ibtool/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib
2020-03-18T08:56:58.9336260Z obj/Release/ibtool/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib
2020-03-18T08:56:58.9336710Z obj/Release/ibtool/Main.storyboardc/Info.plist
2020-03-18T08:56:58.9337010Z OutputManifests Output:
2020-03-18T08:56:58.9337630Z obj/Release/ibtool-manifests/Main.storyboardc
2020-03-18T08:56:58.9401540Z _CoreCompileColladaAssets:
2020-03-18T08:56:58.9402130Z Skipping target "_CoreCompileColladaAssets" because it has no inputs.
2020-03-18T08:56:58.9909730Z PrepareForBuild:
2020-03-18T08:56:58.9910100Z Creating directory "bin/Release/".
2020-03-18T08:57:00.0757690Z CoreCompile:
2020-03-18T08:57:00.0762310Z /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/mono/msbuild/Current/bin/Roslyn/csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:__UNIFIED__;__MACOS__ /reference:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/mscorlib.dll /reference:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/System.Core.dll /reference:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/System.dll /reference:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/Facades/System.Drawing.Common.dll /reference:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/Xamarin.Mac.dll /debug:pdbonly /optimize+ /out:obj/Release/mac-aot-test.exe /target:exe /utf8output /langversion:7.3 Main.cs AppDelegate.cs ViewController.cs ViewController.designer.cs "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Xamarin.Mac,Version=v2.0.AssemblyAttributes.cs"
2020-03-18T08:57:00.0885310Z Using shared compilation with compiler from directory: /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/mono/msbuild/Current/bin/Roslyn
2020-03-18T08:57:03.7946770Z CopyFilesToOutputDirectory:
2020-03-18T08:57:03.7948820Z Copying file from "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/mac-aot-test.exe" to "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.exe".
2020-03-18T08:57:03.8014460Z mac-aot-test -> /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.exe
2020-03-18T08:57:03.8022840Z Copying file from "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/mac-aot-test.pdb" to "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.pdb".
2020-03-18T08:57:03.8378090Z _DetectSigningIdentity:
2020-03-18T08:57:03.8378870Z Detected signing identity:
2020-03-18T08:57:03.8380120Z Bundle Id: ghelyar.mac-aot-test
2020-03-18T08:57:03.8380750Z App Id: ghelyar.mac-aot-test
2020-03-18T08:57:03.8442220Z _CopyContentToBundle:
2020-03-18T08:57:03.8443420Z Creating directory '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources'
2020-03-18T08:57:03.8451040Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/actool/bundle/AppIcon.icns' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/AppIcon.icns'
2020-03-18T08:57:03.8460080Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/actool/bundle/Assets.car' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Assets.car'
2020-03-18T08:57:03.8470060Z Creating directory '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Main.storyboardc'
2020-03-18T08:57:03.8472180Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/ibtool/Main.storyboardc/MainMenu.nib' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Main.storyboardc/MainMenu.nib'
2020-03-18T08:57:03.8480720Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/ibtool/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib'
2020-03-18T08:57:03.8488820Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/ibtool/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib'
2020-03-18T08:57:03.8499720Z Copying file from '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/ibtool/Main.storyboardc/Info.plist' to '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/Resources/Main.storyboardc/Info.plist'
2020-03-18T08:57:03.8806940Z _CompileToNative:
2020-03-18T08:57:03.8808430Z /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp @/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/obj/Release/response-file.rsp -v -v -v -v
2020-03-18T08:57:35.8742890Z Process exited with code 1, command:
2020-03-18T08:57:35.8751190Z /Library/Frameworks/Xamarin.Mac.framework/Versions/6.10.0.21/bin/bmac-mobile-mono --aot=hybrid --runtime=mobile /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/System.dll
2020-03-18T08:57:35.8820200Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:35.8822990Z xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
2020-03-18T08:57:35.8825080Z AOT of image /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/System.dll failed.
2020-03-18T08:57:35.8828060Z Mono Ahead of Time compiler - compiling assembly /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/System.dll
2020-03-18T08:57:35.8829350Z AOTID C45C6A31-82E7-DB21-6099-9CB142E0C831
2020-03-18T08:57:35.8829880Z Compiled: 7/7
2020-03-18T08:57:35.8831160Z Executing the native assembler: "clang" -c -x assembler -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_lmtylS.o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_lmtylS
2020-03-18T08:57:35.8837910Z
2020-03-18T08:57:35.8844460Z Process exited with code 1, command:
2020-03-18T08:57:35.8853420Z /Library/Frameworks/Xamarin.Mac.framework/Versions/6.10.0.21/bin/bmac-mobile-mono --aot=hybrid --runtime=mobile /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mac-aot-test.exe
2020-03-18T08:57:35.8854960Z Mono Ahead of Time compiler - compiling assembly /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mac-aot-test.exe
2020-03-18T08:57:35.8866630Z AOTID CB29613A-B386-A332-EA4C-75C4B0110E55
2020-03-18T08:57:35.8867900Z Compiled: 9/9
2020-03-18T08:57:35.8878930Z Executing the native assembler: "clang" -c -x assembler -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_h496Hl.o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_h496Hl
2020-03-18T08:57:35.8896390Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:35.8926490Z xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
2020-03-18T08:57:35.8941850Z AOT of image /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mac-aot-test.exe failed.
2020-03-18T08:57:35.8946490Z
2020-03-18T08:57:35.9010060Z Process exited with code 1, command:
2020-03-18T08:57:35.9017450Z /Library/Frameworks/Xamarin.Mac.framework/Versions/6.10.0.21/bin/bmac-mobile-mono --aot=hybrid --runtime=mobile /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/Xamarin.Mac.dll
2020-03-18T08:57:35.9021720Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:35.9023690Z xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
2020-03-18T08:57:35.9025270Z AOT of image /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/Xamarin.Mac.dll failed.
2020-03-18T08:57:35.9026940Z Mono Ahead of Time compiler - compiling assembly /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/Xamarin.Mac.dll
2020-03-18T08:57:35.9027960Z AOTID 1C0F8DD6-467E-61B3-9518-F2E1071C03BD
2020-03-18T08:57:35.9028740Z Compiled: 933/933
2020-03-18T08:57:35.9030340Z Executing the native assembler: "clang" -c -x assembler -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_1oNETn.o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_1oNETn
2020-03-18T08:57:35.9031870Z
2020-03-18T08:57:37.6363390Z Process exited with code 1, command:
2020-03-18T08:57:37.6365260Z /Library/Frameworks/Xamarin.Mac.framework/Versions/6.10.0.21/bin/bmac-mobile-mono --aot=hybrid --runtime=mobile /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mscorlib.dll
2020-03-18T08:57:37.6367300Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:37.6368840Z xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
2020-03-18T08:57:37.6369840Z AOT of image /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mscorlib.dll failed.
2020-03-18T08:57:37.6371040Z Mono Ahead of Time compiler - compiling assembly /Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mscorlib.dll
2020-03-18T08:57:37.6371970Z AOTID F8FA5CBF-CC99-DEE2-957F-4583B466AD73
2020-03-18T08:57:37.6372240Z Compiled: 9638/9639
2020-03-18T08:57:37.6373830Z Executing the native assembler: "clang" -c -x assembler -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_ojuuHk.o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/mono_aot_ojuuHk
2020-03-18T08:57:37.6374360Z
2020-03-18T08:57:37.6685810Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mac-aot-test.exe' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:37.7053320Z at Xamarin.Bundler.AOTCompiler+<>c__DisplayClass18_0.<Compile>b__0 (System.String file) [0x0008e] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tools/mmp/aot.cs:212
2020-03-18T08:57:37.7054990Z at System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00012] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7057350Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000cf] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7059130Z --- End of stack trace from previous location where exception was thrown ---
2020-03-18T08:57:37.7069290Z
2020-03-18T08:57:37.7071510Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x001e5] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7073760Z at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:123
2020-03-18T08:57:37.7075600Z at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:78
2020-03-18T08:57:37.7077350Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/System.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:37.7079330Z at Xamarin.Bundler.AOTCompiler+<>c__DisplayClass18_0.<Compile>b__0 (System.String file) [0x0008e] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tools/mmp/aot.cs:212
2020-03-18T08:57:37.7080290Z at System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00012] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7081430Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000cf] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7083400Z --- End of stack trace from previous location where exception was thrown ---
2020-03-18T08:57:37.7083710Z
2020-03-18T08:57:37.7084460Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x001e5] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7086440Z at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:123
2020-03-18T08:57:37.7088650Z at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:78
2020-03-18T08:57:37.7090410Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/Xamarin.Mac.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:37.7091840Z at Xamarin.Bundler.AOTCompiler+<>c__DisplayClass18_0.<Compile>b__0 (System.String file) [0x0008e] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tools/mmp/aot.cs:212
2020-03-18T08:57:37.7092790Z at System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00012] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7093930Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000cf] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7095230Z --- End of stack trace from previous location where exception was thrown ---
2020-03-18T08:57:37.7095520Z
2020-03-18T08:57:37.7096260Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x001e5] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7098220Z at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:123
2020-03-18T08:57:37.7100050Z at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:78
2020-03-18T08:57:37.7102110Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mscorlib.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:37.7103640Z at Xamarin.Bundler.AOTCompiler+<>c__DisplayClass18_0.<Compile>b__0 (System.String file) [0x0008e] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tools/mmp/aot.cs:212
2020-03-18T08:57:37.7104590Z at System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00012] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7105730Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000cf] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7106990Z --- End of stack trace from previous location where exception was thrown ---
2020-03-18T08:57:37.7107340Z
2020-03-18T08:57:37.7108090Z at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x001e5] in <04dc7baae88c476ea5bfb7668d57f21c>:0
2020-03-18T08:57:37.7110010Z at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:123
2020-03-18T08:57:37.7112190Z at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:78
2020-03-18T08:57:38.3168870Z Done Building Project "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj" (default targets) -- FAILED.
2020-03-18T08:57:38.3356710Z Done Building Project "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test.sln" (default targets) -- FAILED.
2020-03-18T08:57:38.3524440Z
2020-03-18T08:57:38.3524970Z Build FAILED.
2020-03-18T08:57:38.3560320Z
2020-03-18T08:57:38.3575380Z "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test.sln" (default target) (1) ->
2020-03-18T08:57:38.3576820Z "/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj" (default target) (2) ->
2020-03-18T08:57:38.3577610Z (_CompileToNative target) ->
2020-03-18T08:57:38.3579750Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3582350Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3585010Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3587910Z clang : error : sh -c '/Applications/Xcode_11.3.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3589900Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mac-aot-test.exe' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3591570Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/System.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3593540Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/Xamarin.Mac.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3595320Z MMP : error MM3001: Could not AOT the assembly '/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/bin/Release/mac-aot-test.app/Contents/MonoBundle/mscorlib.dll' [/Users/runner/runners/2.165.0/work/1/s/mac-aot-test/mac-aot-test/mac-aot-test.csproj]
2020-03-18T08:57:38.3596400Z
2020-03-18T08:57:38.3596560Z 0 Warning(s)
2020-03-18T08:57:38.3596730Z 8 Error(s)
2020-03-18T08:57:38.3596860Z
2020-03-18T08:57:38.3597020Z Time Elapsed 00:00:53.28
2020-03-18T08:57:38.4253270Z ##[error]Error: /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild failed with return code: 1
2020-03-18T08:57:38.4268760Z ##[section]Finishing: MSBuild
If you try to run sudo xcode-select --install in an earlier step, the result is
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
which clang finds /usr/bin/clang
I also have the results of find / -name 'clang' if required
This looks like a duplicate of https://github.com/xamarin/xamarin-macios/issues/8005
It's related, but not a duplicate. It might have the same root cause and the same fix but it's not exactly the same issue.
Looking at the commits linked to that issue, it looks like it takes different code paths for iOS and Mac, so the fixes should be verified independently before the issues are closed, rather than just closing this as a duplicate.
However, I confirmed the workaround from there fixed the problem:
trigger:
- none
pool:
vmImage: macOS-10.15
steps:
- task: MSBuild@1
inputs:
solution: mac-aot-test/mac-aot-test.sln
msbuildArguments: /p:Configuration=Release /p:Platform="Any CPU"
env:
SDKROOT: macosx
It's related, and should be fixed by the fix for #8005 I believe.
Would you be up for testing latest master to validate the fix, if I provide a pkg link?
My dev environment is a 10.14 macincloud machine, and I'm just building on a 10.15 build agent, so it will be difficult to test with a custom pkg that I most likely can't install on the agent, but I can see if I can get a 10.15 environment to test it locally.
@ghelyar you can use https://github.com/jonathanpeppers/boots to install any pkg you need on your build agent if you are using Azure DevOps agents
I can give it a try if you provide the .pkg link.
If boots would work, I would have thought just using installer from bash would work, but I haven't tried.
I could also try pkgutil --expand-full to just extract the pkg, but I don't know how well that would work either.
Hello 馃憢 sorry I missed your last reply, please use
Also boots should make your script life easier.
This did not fix the issue.
build-log-xamarin.mac-6.16.0.11.txt
Here's the corresponding pipeline yaml:
trigger:
- none
pool:
vmImage: macOS-10.15
steps:
- bash: |
curl https://bosstoragemirror.blob.core.windows.net/wrench/jenkins/d16-5-xcode11.4/aa73e412540e0c3b2a4f11b1c76eca2db77912f8/15/package/notarized/xamarin.mac-6.16.0.11.pkg -o xamarin.mac-6.16.0.11.pkg
sudo /usr/sbin/installer -pkg xamarin.mac-6.16.0.11.pkg -target /
- task: MSBuild@1
inputs:
solution: mac-aot-test/mac-aot-test.sln
msbuildArguments: /p:Configuration=Release /p:Platform="Any CPU"
If you review the log:
2020-04-06T10:01:57.2581990Z xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
it appears your bot is not configuring Xcode correctly.
Yes, it's the title of this issue. How do I fix that?
As per my previous replies, xcode-select --install fails with already installed, but setting the environment variable SDKROOT=macosx fixes the problem.
Apologies, I mis-read/understood the issue before my comment 2 days ago.
I checked and that build should have the fix Rolf made. We'll have to look into this.
Hey @rolfbjarne - Did https://github.com/xamarin/xamarin-macios/commit/bacd958be0f20f6993371d0068877058e7d16505 need to touch the invocations in aot.cs? The build tested appears to have your fix, but mono's clang invocation is failing (?)
@ghelyar I've fixed my issue moving Xcode to /Applications/Xcode.app before the build:
- script: 'rm /Applications/Xcode.app'
displayName: 'Remove Xcode.app symlink since Xamarin.Mac/iOS requires the actual Xcode to be at /Applications/Xcode.app'
- script: 'mv /Applications/Xcode_11.5.app /Applications/Xcode.app'
displayName: 'Move Xcode.app 11.5 to /Applications/Xcode.app'
- script: 'sudo xcode-select -s /Applications/Xcode.app/Contents/Developer'
displayName: 'Ensure xcode-select point to /Applications/Xcode.app'
I experienced the same problem but with dsymutil instead of clang. I'm also using Travis CI instead of Azure. The export SDKROOT=macosx workaround worked like a charm. Thanks!
Here's the relevant section of my logs in case others run into the same issue. (It took me hours to find this thread...)
dsymutil : error : sh -c '/Applications/Xcode-11.6.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-11.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
/MacOSX.sdk -find dsymutil 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) []
xcode-select: Failed to locate 'dsymutil', requesting installation of command line developer tools. (TaskId:62)
AOT of image /Contents/MonoBundle/Newtonsoft.Json.dll failed. (TaskId:62)
Is the system's default Xcode different from the Xcode configured in Visual Studio for Mac?
You can get the system's default Xcode like this:
$ xcode-select -p
/Applications/Xcode_12.2.0-beta1.app/Contents/Developer
and Visual Studio for Mac's Xcode like this:
$ cat ~/Library/Preferences/Xamarin/Settings.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleSdkRoot</key>
<string>/Applications/Xcode_12.2.0-beta1.app</string>
</dict>
</plist>
Bearing in mind this is running on an Azure DevOps build agent, and not a machine a developer uses:
$ xcode-select -p
/Applications/Xcode_11.7.app/Contents/Developer
$ cat ~/Library/Preferences/Xamarin/Settings.plist
cat: /Users/runner/Library/Preferences/Xamarin/Settings.plist: No such file or directory
@ghelyar which version of Xcode is /Applications/Xcode.app?
You can find it like this:
$ DEVELOPER_DIR=/Applications/Xcode.app xcrun xcodebuild -version
Xcode 11.5
Build version 11E608c
I can reproduce this. It happens when there's no Xcode configured in Visual Studio for Mac, and the system Xcode is not the one we want to use.
There are two workarounds:
sudo xcode-select -s /Applications/Xcode_11.7.app
mkdir -p ~/Library/Preferences/Xamarin
rm -f ~/Library/Preferences/Xamarin/Settings.plist
/usr/libexec/PlistBuddy -c "add :AppleSdkRoot string /Applications/Xcode_11.7.app" ~/Library/Preferences/Xamarin/Settings.plist
Tentative fix: https://github.com/rolfbjarne/xamarin-macios/commit/d7c960b4bc60138cb6755f981131ef5b91b8bd0f (and https://github.com/rolfbjarne/xamarin-macios/commit/d7c960b4bc60138cb6755f981131ef5b91b8bd0f^).
Thanks @rolfbjarne for investigating.
Similar to @ghelyar , my environment doesn't have the Settings.plist file.
travis$ cat ~/Library/Preferences/Xamarin/Settings.plist
cat: /Users/travis/Library/Preferences/Xamarin/Settings.plist: No such file or directory
It sounds like you have been able to reproduce, but just in case this is helpful, here's how I set up the environment:
# Using a Travis CI xcode11.6 macos image
export XAMARIN_MAC_VERSION=6.20.2.2
brew cask install mono-mdk
curl -OL https://dl.xamarin.com/XamarinforMac/Mac/xamarin.mac-${XAMARIN_MAC_VERSION}.pkg
sudo installer -pkg xamarin.mac-${XAMARIN_MAC_VERSION}.pkg -target /
As I raised this 7 months ago, the Azure DevOps build agent has probably been updated so for now I no longer have a repro of this, but just to confirm, the versions are now the same and the problem no longer occurs. Of course, this relies on Microsoft and their macOS agent provider (macincloud?) keeping the versions the same, so it could reoccur.
$ xcode-select -p
/Applications/Xcode_11.7.app/Contents/Developer
$ DEVELOPER_DIR=/Applications/Xcode.app xcrun xcodebuild -version
Xcode 11.7
Build version 11E801a
I can't confirm whether they were different versions back in March. I do happen to run this in my pipeline, but it's all I have from back then.
$ xcodebuild -version
Xcode 11.3.1
Build version 11C505
Most helpful comment
Yes, it's the title of this issue. How do I fix that?
As per my previous replies,
xcode-select --installfails with already installed, but setting the environment variableSDKROOT=macosxfixes the problem.