简体   繁体   English

如何在 Azure Pipelines 中升级 XCode?

[英]How do you upgrade XCode in Azure Pipelines?

With the recent prolific problems with Azure DevOps' macOS-10.15 and macOS-latest agents one of the solutions to get around the problem at least my Expo build was to use the macos-10.14 agent which is all well and good.由于最近 Azure DevOps 的macOS-10.15macOS-latest 代理出现大量问题,解决问题的解决方案之一至少是我的 Expo 构建是使用macos-10.14代理,这一切都很好。 However, in my Cordova project I am using a plugin that uses UIDatePickerStyleWheels which is resolved by an XCode update to 11.6但是,在我的 Cordova 项目中,我使用了一个使用UIDatePickerStyleWheels的插件,该插件由 XCode 更新到 11.6 解决

I was wondering how do you upgrade XCode within an Azure DevOps pipelines.我想知道如何在 Azure DevOps 管道中升级 XCode Especially since the agent is headless I can't just enter a password or access the App Store to download.特别是因为代理是无头的,我不能只输入密码或访问 App Store 进行下载。

According to your description, you mentioned that you use latest stable XCode (11.6) and it works as expected.根据您的描述,您提到您使用最新的稳定 XCode (11.6) 并且它按预期工作。

Now the issue with MacOS 10.15 Hosted Agents seems to have been fixed, I am using macOS-10.15 and it works fine.现在,MacOS 10.15 托管代理的问题似乎已得到解决,我使用的是 macOS-10.15,并且运行良好。 You can try MacOS 10.15 again.您可以再次尝试 MacOS 10.15。

In addition,you can add Xcode task in Azure DevOps pipelines, then select Specify path in the "Xcode version" option list, and then specify the path in the "Xcode developer path" option as: /Applications/Xcode_11.6.app .另外,您可以在 Azure DevOps 管道中添加 Xcode 任务,然后在“Xcode 版本”选项列表中选择“指定路径”,然后在“Xcode 开发人员路径”选项中指定路径为: /Applications/Xcode_11.6.app You need to note that the "SDK" option type iOS 13.6 .您需要注意“SDK”选项类型为iOS 13.6 在此处输入图片说明 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM