Description
Description
I am trying to build a Maui 9 project with the following command line:
dotnet publish -f net9.0-ios -c Release -p:ArchiveOnBuild=true /p:RuntimeIdentifier=ios-arm64 cpm-app/cpm-app.csproj
I am also setting the xcode version to 16.2 via
sudo xcode-select -s /Applications/Xcode_16.2.0.app/Contents/Developer
but I get the following error i the build:
2025-01-10 14:51:35.165 xcodebuild[8338:37797] Writing error result bundle to /var/folders/sg/7ncxbtp941dd9ql29twtl6jw0000gn/T/ResultBundle_2025-10-01_14-51-0035.xcresult xcodebuild: error: SDK "/Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. 2025-01-10 14:51:37.449 xcodebuild[8480:38140] Writing error result bundle to /var/folders/sg/7ncxbtp941dd9ql29twtl6jw0000gn/T/ResultBundle_2025-10-01_14-51-0037.xcresult xcodebuild: error: SDK "/Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. xcrun: error: sh -c '/Applications/Xcode_16.2.0.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find actool 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) xcrun: error: unable to find utility "actool", not a developer tool or in PATH
Platforms affected
- Azure DevOps
- GitHub Actions - Standard Runners
- GitHub Actions - Larger Runners
Runner images affected
- Ubuntu 20.04
- Ubuntu 22.04
- Ubuntu 24.04
- macOS 12
- macOS 13
- macOS 13 Arm64
- macOS 14
- macOS 14 Arm64
- macOS 15
- macOS 15 Arm64
- Windows Server 2019
- Windows Server 2022
- Windows Server 2025
Image version and build link
20250106.547
Is it regression?
no
Expected behavior
The build should succeed
Actual behavior
The build fails
Repro steps
- build a maui .net 9 project