-
Notifications
You must be signed in to change notification settings - Fork 548
Closed
Closed
Copy link
Description
Yesterday my Azure DevOps pipeline build was working fine, but all of a sudden I'm getting:
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/targets/Xamarin.Shared.Sdk.targets(2346,3): error : This version of .NET for iOS (26.0.9752) requires Xcode 26.0. The current version of Xcode is 16.4. Either install Xcode 26.0, or use a different version of .NET for iOS. See https://aka.ms/xcode-requirement for more information. [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
So I've updated my build with this:
- task: CmdLine@2
displayName: 'Selects a specific version of Xcode'
inputs:
script: 'sudo xcode-select -switch /Applications/Xcode_26.0.app/Contents/Developer'
But that's giving me:
Finished external tool execution dotnet/maui#1 in 00:00:16.5337148 and with exit code 72.
2025-10-14 12:51:18.466 xcodebuild[16390:44971] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0018.xcresult
xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located.
2025-10-14 12:51:20.790 xcodebuild[16724:45697] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0020.xcresult
xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located.
xcrun: error: sh -c '/Applications/Xcode_26.0.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_26.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
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : /usr/bin/xcrun exited with code 72: [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : 2025-10-14 12:51:18.466 xcodebuild[16390:44971] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0018.xcresult [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : 2025-10-14 12:51:20.790 xcodebuild[16724:45697] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0020.xcresult [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : xcrun: error: sh -c '/Applications/Xcode_26.0.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_26.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) [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : xcrun: error: unable to find utility "actool", not a developer tool or in PATH [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : 2025-10-14 12:51:18.466 xcodebuild[16390:44971] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0018.xcresult [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : 2025-10-14 12:51:20.790 xcodebuild[16724:45697] Writing error result bundle to /var/folders/5k/fq5ptf2906bgfn1krb78bmj00000gn/T/ResultBundle_2025-14-10_12-51-0020.xcresult [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : xcodebuild: error: SDK "/Applications/Xcode_26.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" cannot be located. [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : xcrun: error: sh -c '/Applications/Xcode_26.0.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_26.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) [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : xcrun: error: unable to find utility "actool", not a developer tool or in PATH [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/work/1/s/MyProject.MauiApp/obj/Release/net9.0-ios/ios-arm64/actool/cloned-assets/Assets.xcassets : error : [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : actool exited with code 72 [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
Exception: System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.ReadToDescendant(String name)
at Xamarin.MacDev.PropertyListFormat.XmlFormat.StartReading(Stream input) in /Users/builder/azdo/_work/1/s/macios/external/Xamarin.MacDev/Xamarin.MacDev/PListObject.cs:line 1864
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/tools/msbuild/Xamarin.Shared.targets(977,3): error : Failed to load actool log file `obj/Release/net9.0-ios/ios-arm64/actool/asset-manifest.plist`: Failed to parse PList data type: [/Users/runner/work/1/s/MyProject.MauiApp/MyProject.MauiApp.csproj::TargetFramework=net9.0-ios]
##[error]Bash exited with code '1'.
Finishing: Build project
What happened here?
Metadata
Metadata
Assignees
Labels
No labels