-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Unable to build a MAUI iOS app using a self-hosted Azure DevOps build agent #3233
Comments
Hey @vecalion , I haven't bumped into this before... and our own CI isn't haven't any issues building the MAUI Sample apps we have in this repo. Do you only get this on your CI machine (so does everything build on your local dev machine)? If so, I guess that would be a good place to start... how can you do a bit of a diff between your local dev environment and what's running on CI? |
Hey @jamescrosswell, yeah, this is what I've been trying to figure out for the past three days and I don't see any difference. When we remove the Sentry nuget and comment out all references, it works with no issues. I tried to reinstall the build agent - still getting that error. Any suggestions what else to try? |
You're using github for CI right? I don't have much experience with self hosted agents on GitHub but you could check against the config we're using for our CI builds... all of which is here in this repo. Most of our CI builds are triggered from .github/workflows/build.yml... you can see we're using |
@jamescrosswell, I took the sample project, replaced referenced Sentry.Maui with the latest nuget. Added to the .csproj:
Pushed into a Azure DevOpes repo, added a pipeline and got the same error:
The same is reproducible with the microsoft hosted agents (macos-13). I don't use GitHub Actions, so not sure if the issue will be reproducible there. But if you'd like to try, please use the nuget and the MtouchLink. |
@jamescrosswell, I have figured out what is causing the build issues: the version of microsoft.net.sdk.ios. In our project, we used the preview feed. The builds don't work with v17.2.8052. As soon as I switched to 8043, everything started working well. So, either it's an issue in the preview SDK or there are some upcoming changes that surface an issue in the Sentry SDK. Here I created a repro project: https://github.com/vecalion/sentry-build-issue Please take a look. If this is something on the Sentry side, it would be great to have a hotfix until the next version of the microsoft.net.sdk.ios is publicly available. |
Thanks for sharing the details. |
Perhaps worth checking with folks on https://github.com/xamarin/xamarin-macios might be something with their preview build not building things right on arm64? |
i have the same issue on prod 8.0.203 with Azure DevOps pipeline for agent with os macOS-13 |
Is there any ETA? It's not possible to build the MAUI app without removing Sentry dependency from it. |
As it happens, we just started running into this on our own CI today... not sure what changed but be can't deploy any new versions of Sentry without fixing it so... probably pretty quickly 😉 |
great to hear thats its reproducible on your side ! 🔥 |
As I mentioned in my investigation, the version of Microsoft.iOS.Sdk is causing it. New one was released 12 hours ago: https://www.nuget.org/packages/Microsoft.iOS.Sdk#versions-body-tab |
We're working on it! |
I think I found what's going on. Something seems to be off with the bindings generation. A fix is coming. |
When do you plan to publish newest package to nuget ? |
Any minute now. As soon as CI stops acting up. |
Best guess here is that Glad you found the issue and it looks like there's a new package published :) |
Adding a bit more context, it does look like there was a fix in .NET iOS: xamarin/xamarin-macios#20066 where they were not previously telling the compiler about some fields (which was broken/wrong/incorrect) and now that it was 'fixed' it's exposing this issue where the private fields are being bound when they should not be. |
I get where you're coming from, thanks for the explanation. But |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.203
OS
iOS
SDK Version
4.2.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
There is a self-hosted build agent on Mac M1 (agent version vsts-agent-osx-x64-3.236.1). After a minor code change, the pipeline that builds the app started to fail with an odd result (see below). Since the change didn't touch any dependencies and was more like a code clean up, I suspect that something has changed in the environment of the build machine. But I don't know what.
Expected Result
The app builds with no issues.
Actual Result
The text was updated successfully, but these errors were encountered: