Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps Pipelines XCode 16.0 unable to find utility "actool"

We've just upgraded our Azure Pipelines XCode version from 15.4 to 16.0. We are using the Microsoft Hosted Agent, macOS-14. We have a Pipeline task doing the following:

sudo xcode-select -switch /Applications/Xcode_16.0.app
xcode-select -print-path
xcodebuild -version

However, when running the Pipeline we get the error:

xcrun: error: unable to find utility "actool", not a developer tool or in PATH

Was working great with 15.4 but we upgraded because in 15.4 we got MAUI compilation errors such as:

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)

Any help what could be wrong?

like image 780
Smith5727 Avatar asked Sep 02 '25 09:09

Smith5727


2 Answers

In case anyone else finds themselves here wondering why Xcode 16.0 is not found: We were setting the path for 16.0 in the path as: sudo xcode-select -switch /Applications/Xcode_16.0.app/Contents/Developer

but for 16.0 the path is just: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer

Notice Xcode_16.app instead of Xcode_16.0.app

We used: find /Applications/ -name "Xcode*.app" -type d to check the path.

like image 63
Jeff Widmer Avatar answered Sep 04 '25 23:09

Jeff Widmer


Using

sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer

And reverting to SDK 8.0.402 version in workload install worked

like image 36
Smith5727 Avatar answered Sep 04 '25 22:09

Smith5727