Hi!
We are going to change default Xcode version from 11.3.1 to 11.4.1 on April, 29.
Until then, please, use the following command to change default Xcode version
sudo xcode-select -s "/Applications/Xcode_11.4.1.app"
If you have any concerns or questions please let use know through this issue.
Thanks!
Hello @AlenaSviridenko i'm still having the issue :
MTOUCH : warning MT0079: The recommended Xcode version for Xamarin.iOS 13.16.0 is Xcode 11.4 or later. The current Xcode version (found in /Applications/Xcode.app/Contents/Developer) is 11.3.1.
I tried using a console job and pasted the exact line you reference sudo xcode-select -s "/Applications/Xcode_11.4.1.app" also tried without the ""
I am using Microsoft Hosted Agent machine name: 'Mac-1551'
I think I may be missing something.
Thanks!
Hi @mauro3005! Could you please share the log of sudo xcode-select -s "/Applications/Xcode_11.4.1.app" command?
Hi @mauro3005! Could you please share the log of
sudo xcode-select -s "/Applications/Xcode_11.4.1.app"command?
2020-04-28T13:47:08.7694060Z ##[debug]Evaluating condition for step: 'Select Xcode 11.4'
2020-04-28T13:47:08.7695990Z ##[debug]Evaluating: succeeded()
2020-04-28T13:47:08.7696570Z ##[debug]Evaluating succeeded:
2020-04-28T13:47:08.7697820Z ##[debug]=> True
2020-04-28T13:47:08.7698540Z ##[debug]Result: True
2020-04-28T13:47:08.7699330Z ##[section]Starting: Select Xcode 11.4
2020-04-28T13:47:08.7707750Z ==============================================================================
2020-04-28T13:47:08.7708120Z Task : Command line
2020-04-28T13:47:08.7708490Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2020-04-28T13:47:08.7708840Z Version : 2.164.0
2020-04-28T13:47:08.7709110Z Author : Microsoft Corporation
2020-04-28T13:47:08.7709490Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2020-04-28T13:47:08.7709930Z ==============================================================================
2020-04-28T13:47:09.0232060Z ##[debug]agent.TempDirectory=/Users/runner/runners/2.166.4/work/_temp
2020-04-28T13:47:09.0333140Z ##[debug]loading inputs and endpoints
2020-04-28T13:47:09.0434970Z ##[debug]loading INPUT_SCRIPT
2020-04-28T13:47:09.0534880Z ##[debug]loading INPUT_WORKINGDIRECTORY
2020-04-28T13:47:09.0635460Z ##[debug]loading INPUT_FAILONSTDERR
2020-04-28T13:47:09.0737090Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-04-28T13:47:09.0837740Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-04-28T13:47:09.0939990Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-04-28T13:47:09.1041660Z ##[debug]loading SECRET_KEYCHAINPASSWORD
2020-04-28T13:47:09.1143200Z ##[debug]loading SECRET_P12PASSWORD
2020-04-28T13:47:09.1230220Z ##[debug]loading SECRET_KEYSTOREPW
2020-04-28T13:47:09.1234590Z ##[debug]loaded 9
2020-04-28T13:47:09.1235100Z ##[debug]Agent.ProxyUrl=undefined
2020-04-28T13:47:09.1235870Z ##[debug]Agent.CAInfo=undefined
2020-04-28T13:47:09.1236530Z ##[debug]Agent.ClientCert=undefined
2020-04-28T13:47:09.1237330Z ##[debug]Agent.SkipCertValidation=undefined
2020-04-28T13:47:09.1349870Z ##[debug]check path : /Users/runner/runners/2.166.4/work/_tasks/CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9/2.164.0/task.json
2020-04-28T13:47:09.1439350Z ##[debug]adding resource file: /Users/runner/runners/2.166.4/work/_tasks/CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9/2.164.0/task.json
2020-04-28T13:47:09.1463180Z ##[debug]system.culture=en-US
2020-04-28T13:47:09.1464320Z ##[debug]failOnStderr=true
2020-04-28T13:47:09.1465640Z ##[debug]script=echo Select Xcode version 11.4
sudo xcode-select -s "/Applications/Xcode_11.4.1.app"
2020-04-28T13:47:09.1466550Z ##[debug]workingDirectory=/Users/runner/runners/2.166.4/work/1/s
2020-04-28T13:47:09.1467380Z ##[debug]check path : /Users/runner/runners/2.166.4/work/1/s
2020-04-28T13:47:09.1467980Z Generating script.
2020-04-28T13:47:09.1468600Z ##[debug]Agent.Version=2.166.4
2020-04-28T13:47:09.1469360Z ##[debug]agent.tempDirectory=/Users/runner/runners/2.166.4/work/_temp
2020-04-28T13:47:09.1489860Z ##[debug]check path : /Users/runner/runners/2.166.4/work/_temp
2020-04-28T13:47:09.1516220Z ========================== Starting Command Output ===========================
2020-04-28T13:47:09.1533340Z ##[debug]which 'bash'
2020-04-28T13:47:09.1543460Z ##[debug]found: '/bin/bash'
2020-04-28T13:47:09.1550390Z ##[debug]which '/bin/bash'
2020-04-28T13:47:09.1556050Z ##[debug]found: '/bin/bash'
2020-04-28T13:47:09.1565730Z ##[debug]/bin/bash arg: --noprofile
2020-04-28T13:47:09.1571260Z ##[debug]/bin/bash arg: --norc
2020-04-28T13:47:09.1575170Z ##[debug]/bin/bash arg: /Users/runner/runners/2.166.4/work/_temp/d8531aec-7baf-4fb2-818b-f1a9abe8a173.sh
2020-04-28T13:47:09.1576290Z ##[debug]exec tool: /bin/bash
2020-04-28T13:47:09.1577260Z ##[debug]arguments:
2020-04-28T13:47:09.1578350Z ##[debug] --noprofile
2020-04-28T13:47:09.1579720Z ##[debug] --norc
2020-04-28T13:47:09.1581040Z ##[debug] /Users/runner/runners/2.166.4/work/_temp/d8531aec-7baf-4fb2-818b-f1a9abe8a173.sh
2020-04-28T13:47:09.1588370Z [command]/bin/bash --noprofile --norc /Users/runner/runners/2.166.4/work/_temp/d8531aec-7baf-4fb2-818b-f1a9abe8a173.sh
2020-04-28T13:47:09.1589120Z Select Xcode version 11.4
2020-04-28T13:47:09.1589700Z
2020-04-28T13:47:09.1590610Z ##[debug]Exit code 0 received from tool '/bin/bash'
2020-04-28T13:47:09.1591530Z ##[debug]STDIO streams have closed for tool '/bin/bash'
2020-04-28T13:47:09.1594780Z ##[debug]task result: Succeeded
2020-04-28T13:47:09.1608660Z ##[debug]Processed: ##vso[task.complete result=Succeeded;done=true;]
2020-04-28T13:47:09.1620160Z ##[section]Finishing: Select Xcode 11.4
Oh, for Xamarin usage please, also use this command before changing the default Xcode
echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_11.4.1.app
Here the page for reference about it: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#xamarin
Yay that did it! Thanks @AlenaSviridenko
Is it possible to select an older version:
sudo xcode-select -s "/Applications/Xcode_11.3.1.app"
i.e. would it still be installed and available on the runner?
Reason why I'm asking is that 11.4.1 has some iOS Simulator breaking changes that require us to rework our static library build structure. Mentioned here: https://forums.developer.apple.com/thread/130684
@maxgolov , Yes, a bunch of Xcode versions are available on the image.
You can switch between them using the command that you shared above or setup-xcode action.
Default Xcode was changed, closing this issue.
Most helpful comment
@maxgolov , Yes, a bunch of Xcode versions are available on the image.
You can switch between them using the command that you shared above or setup-xcode action.