Description
Description
I am trying to build for mac catalyst - this seemed to work in Preview 4 with the same command line, but what I did for that was to clear old preview SDK's out and that fixed it - where as here, all I have is core 8 final and 9 preview 6.
ILLink : error IL1011: Failed to write 'obj/Release/net9.0-maccatalyst/maccatalyst-x64/linked/System.Private.CoreLib.dll'.
/Users/mitch/.nuget/packages/microsoft.net.illink.tasks/9.0.0-preview.6.24327.7/build/Microsoft.NET.ILLink.targets(95,5): error NETSDK1144: Optimizing assemblies for size failed.
AbMobileMaui net9.0-maccatalyst failed with 16 warning(s) (3.8s)
Steps to Reproduce
I am using this command line:
dotnet publish -f net9.0-maccatalyst -c Release
-p:ArchiveOnBuild=true
-p:CreatePackage=true
-p:EnableCodeSigning=true
-p:CodesignKey="Apple Distribution: AlzBetter LLC (8DVSMQ7G8N)"
-p:CodesignProvision="MacOS Distribution"
-p:CodesignEntitlements="Platforms/MacCatalyst/Entitlements.plist"
-p:UseHardenedRuntime=true
And here's my CSProj - I could be way off base on how I have things configured, so please feel free to tell me what I might have set up wrong here.
Edit: Attaching CSProj as a file due to formatting.
Link to public reproduction project repository
No response
Version with bug
9.0.0-preview.6.24327.7
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.0-preview.4.10690
Affected platforms
macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Status