-
Notifications
You must be signed in to change notification settings - Fork 331
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
[Bug] Build failure. Invalid iOS version #4091
Comments
HI @VladislavAntonyuk, I am not sure about the |
Hi @gladjohn! |
So I think the app does have to target specific iOS version, like net7.0-ios16.2. Otherwise net7.0-ios will end up picking up net6.0 MSAL binaries. In 4.53.0 we haven't made any changes that would affect the TFMs. When rebuilding as net7.0-ios16.2, is environment clean, and all previous cached bin/obj folders erased? Maybe VS is picking up some old files. |
@pmaytak I uses net7.0-ios without specifying version. |
@VladislavAntonyuk we are able to repro the issue. We will update once we find the root cause or if we have a workaround or a fix |
@gladjohn is there a nightly generated package available, so I can check if the is fixed? |
@VladislavAntonyuk 16.4 was released 2 days ago. https://www.nuget.org/packages/Microsoft.iOS.Sdk/#versions-body-tab Can you try updating the iOS MAUI workloads on your machine? |
if .net 8 is installed, VS or |
@VladislavAntonyuk : Thank you for the tip ( |
@VladislavAntonyuk, @pmaytak, @gladjohn I'm also facing the same issue as, Severity Code Description Project File Line Suppression State What I tried:
|
The original issue was that MSAL included Microsoft.iOS 16.4 which was a preview version at the time. As of now Microsoft.iOS 16.4 is public stable. So this seems like a different issue. Some things to try:
|
Logs and network traces
Without logs or traces, it is unlikely that the team can investigate your issue. Capturing logs and network traces is described in Logging wiki.
Which version of MSAL.NET are you using?
4.53.0
Platform
net7.0-ios
Repro
https://github.com/VladislavAntonyuk/MauiSamples/tree/main/Auth/MauiAuth
Expected behavior
No build issue.
Actual behavior
Error CS1705 Assembly 'Microsoft.Identity.Client' with identity 'Microsoft.Identity.Client, Version=4.53.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae' uses 'Microsoft.iOS, Version=16.4.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' which has a higher version than referenced assembly 'Microsoft.iOS' with identity 'Microsoft.iOS, Version=16.2.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
Possible solution
Downgrade to 4.52.0
Additional context / logs / screenshots / links to code
The latest available version of iOS Sdk is 16.2: https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md
The text was updated successfully, but these errors were encountered: