-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build Maui 9 with macos-15 #11348
Comments
@sven-s We will investigate the issue and keep you posted on further updates. |
@aartis17 Thanks for looking into this. We are also facing same issue. |
@maroy1986 I tried Xcode 16.1, but that did not work: The linker gives me this warning: ILLINK : warning MT0079: The recommended Xcode version for Microsoft.iOS 18.2.9170 is Xcode 16.2 or later. And I got this error: /Users/builder/azdo/_work/9/s/xamarin-macios/src/build/dotnet/ios/generated-sources/AVFoundation/AVAudioSession.g.cs(659): error MT4162: The type 'AVFoundation.AVAudioSessionMicrophoneInjectionMode' (used as a parameter in AVFoundation.AVAudioSession.SetPreferredMicrophoneInjectionMode) is not available in iOS 18.1 (it was introduced in iOS 18.2). Please build with a newer iOS SDK (usually done by using the most recent version of Xcode). [/Users/runner/work/1/s/cpm-app-extension-share/cpm-app-extension-share.csproj] So to me, the version to go for .NET 9 Maui is Xcode 16.2 |
Hi @sven-s , |
Hi @aartis17, the solution is a .NET Maui project template which looks like this:
i use this workflow:
Is that enough info? |
This uses .net 9 with xcode 16.2 and publishes fine for our app. It's a bit truncated because of other steps to shuffle files around.
|
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
Runner images affected
Image version and build link
20250106.547
Is it regression?
no
Expected behavior
The build should succeed
Actual behavior
The build fails
Repro steps
The text was updated successfully, but these errors were encountered: