-
Notifications
You must be signed in to change notification settings - Fork 516
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
BI1055 error is thrown for iOS Binding project after migrating form .NET6 to .NET7 #18966
Comments
Could you show the api definition that triggers this? |
Hi @awattar. We have added the "need-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. |
@rolfbjarne sure - as simple as this:
Generates unfinished file and breaks:
Removing The same definition code works for .NET6. |
OK, I can reproduce it now, thanks. |
@rolfbjarne thanks for the quick fix. Any chances it will land soon on .NET7 stable channel? If not what will be version/manifest version for this change? |
I'll backport this to .NET 7, but it will take a few weeks until it gets released (it's too late for the next service release, it will have to wait until the one after that). |
We can take the sideload build. Would you be so kind as to tell me the location and build number once it will be merged? |
Microsoft.iOS 16.4.7105 contains the fix: https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet7/NuGet/Microsoft.iOS.Sdk/overview/16.4.7105%20sha.a08b9f39d |
Steps to Reproduce
Expected Behavior
Build without issues.
Actual Behavior
/Users/USER/PROJECT/BTOUCH: Error BI1055: bgen: Internal error: failed to convert type 'System.Runtime.Versioning.ObsoletedOSPlatformAttribute, System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Please file a bug report (https://github.com/xamarin/xamarin-macios/issues/new) with a test case. (BI1055) (PROJECT)
Environment
Version information
Build Logs
Description
See identical issue but for different attribute - #11497
See discord conversation - https://discord.com/channels/732297728826277939/732297808148824115/1149440289480646686
Code reference:
xamarin-macios/src/generator-attribute-manager.cs
Lines 218 to 223 in b7c6eb2
xamarin-macios/src/bgen/AttributeManager.cs
Lines 217 to 222 in 8b3bf35
The text was updated successfully, but these errors were encountered: