我们刚刚将 Azure Pipelines XCode 版本从 15.4 升级到 16.0。我们正在使用 Microsoft 托管代理 macOS-14。我们有一个管道任务执行以下操作:
sudo xcode-select -switch /Applications/Xcode_16.0.app
xcode-select -print-path
xcodebuild -version
但是,当运行管道时,我们收到错误:
xcrun: error: unable to find utility "actool", not a developer tool or in PATH
在 15.4 中工作得很好,但我们升级了,因为在 15.4 中我们遇到了 MAUI 编译错误,例如:
error MT4162: The type 'UIKit.NSAdaptiveImageGlyph' (used as a parameter in UIKit.UITextField.InsertAdaptiveImageGlyph) is not available in iOS 17.5 (it was introduced in iOS 18.0). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode)
有什么帮助可能是错的吗?
sudo xcode-select -switch /Applications/Xcode_16.1_beta_2.app 为我工作 https://github.com/actions/runner-images/issues/10629#issuecomment-2366919103