-
Notifications
You must be signed in to change notification settings - Fork 1.1k
self-contained warning should be suppressed for iOS #23705
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
Comments
We should check if self-contained is set at all rather than specifically the command line. |
Related links for reference: |
Fix self-contained warning - addressing bug #23705
We noticed this happens on Android as well. Mobile platforms define |
@jonathanpeppers Yes, the fix applies to iOS and Android, as well as projects which explicitly set SelfContained to true. |
FYI I'm on 6.0.400 latest and I'm still getting this warning. |
Describe the bug
When publishing for iOS you need to specify a RuntimeIdentifier. See dotnet/macios#13462 and dotnet/macios#12997.
However, when you try to publish for
-f net6.0-ios -r ios-arm64
, you get a warning:This doesn't make sense in an iOS app because you can only publish self-contained.
To Reproduce
dotnet workload install maui
dotnet new maui
dotnet publish -c Release -f net6.0-ios -r ios-arm64
Warnings
Further technical details
cc @dsplaisted @rolfbjarne
The text was updated successfully, but these errors were encountered: