-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS] MAUI project won't build with the 8.0.0-rc.2.9530 version on Azure Pipeline #18632
Comments
I think you need to install/select Xcode 15. Try running this as part of the setup:
|
Hi @Yokaichan. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Thank you for your response but I'm not very familiar with Azure Pipeline and when I try to add the sudo code, the error "invalid developer directory" appears. Edited: I added the yaml file which describe the pipeline |
Hi @Yokaichan, Check the use-custom-xcode-template.txt template. You can use like this in your pipelines (or you can just copy the ask inside of it).
Also you will need to run the pipeline on macos13 by setting
|
Let us know if that worked! |
Hi @Yokaichan. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I was having the same issue and thanks to the responses here I was able to resolve it. However, at first, I only added the Xcode script as I was already targeting macOS-latest so I thought I didn't need to specify macOS-13 but it turns out I did! |
Thank you very much ! based on your response I added those two lines before my workload install script: sudo xcode-select -s /Applications/Xcode_15.0.1.app And I set the agent specification to maco-13 and it works like a charm. I didn't try to set both xcode version and macos-13 (I thought that latest means 13 in this case). |
I can confirm that I had the same issue with github actions. I had to do two things to resolve:
|
@GeorgeDarakchiev Thank you for the script idea - it did fixed my pipeline that was "hoping" that the algorithm would pick up the latest and greatest as the instructions in my pipeline. I want to double-check with you great people who are smarter than myself in the area of azure deployment architecture: is my understanding correct that we need the above solution only for the time being until Microsoft adjusts it's algorithm to actually use the latest xcode by default, right? Or it is always necessary to manually instruct the pipeline about the version of xcode to use??? |
Heu @MichaelShapiro , Choosing the exact version of Xcode is needed until the desired version is set as default. You can check what is the default version of the Xcode in the https://github.com/actions/runner-images repo. |
Thank you very much for the info! |
Are there any suggestions for Azure DevOps? The discussion here revolves around github actions, but the same problem exists with Microsoft hosted agents on Azure DevOps. |
It turns out "sudo xcode-select -s /Applications/Xcode_15.0.1.app" is sufficient for AzureDevOps: the "Recent updates" documentation at https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml does not list xcode 15 as installed, but it the detailed list for macos-13 does show it as present. |
Description
The Azure Pipeline, set to use the 8.0.x version, install the Microsoft.Maui.Sdk version 8.0.0-rc.2.9530 and the microsoft.net.sdk.ios version 17.0.8477-net8-rc2.2.
But with those versions, the project won't build anymore.
I already tried to change the csproj with:
<PublishTrimmed>false</PublishTrimmed>
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-rc.2.9511
Affected platforms
iOS
Affected platform versions
microsoft.net.sdk.ios version 17.0.8477-net8-rc2.2.
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: