【发布时间】:2021-11-19 23:26:16
【问题描述】:
我在使用 Xcode 13 的 Azure DevOps 支持 macOS 构建中找不到图像。
有谁知道如何在 Azure DevOps 中找到或添加这样的图像?
【问题讨论】:
-
抱歉,我可能对 Azure DevOps 了解不够,但我不知道您在寻找什么。
标签: macos azure-devops ios15 xcode13
我在使用 Xcode 13 的 Azure DevOps 支持 macOS 构建中找不到图像。
有谁知道如何在 Azure DevOps 中找到或添加这样的图像?
【问题讨论】:
标签: macos azure-devops ios15 xcode13
对于 Xode 13 和 IOS 15,您可以尝试使用 Microsoft-Hosted Agent:macOS 11。
在 9/17 更新中,macos11 中添加了 Xcode13。
请参阅发行说明:macOS 11 (20210917 update) 和 Macos 11 agent configuration
【讨论】:
(default target) (1) -> (_CompileToNative target) -> MTOUCH : warning MT0079: The recommended Xcode version for Xamarin.iOS 15.0.0 is Xcode 13.0 or later. The current Xcode version (found in /Applications/Xcode_12.5.1.app/Contents/Developer) is 12.5.1.
MTOUCH : warning MT0109: The assembly 'System.Security.SecureString.dll' was loaded from a different path than the provided path (provided path: /Users/runner/.nuget/packages/system.security.securestring/4.3.0/runtimes/win/lib/netstandard1.3/System.Security.SecureString.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/15.0.0.6/lib/mono/Xamarin.iOS/Facades/System.Security.SecureString.dll).
根据this article 您需要找到最新的 Mono 和 XCode 版本(列出 here)并使用手动设置它们
/bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_12_10"
/bin/bash -c "echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_13.0.app;sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"
然后使用构建
mono
'/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/msbuild.dll'
/p:Configuration=$(BuildConfiguration)
/p:Platform=iPhone
'<path to project>'
【讨论】: