Microsoft.Maui.Graphics icon indicating copy to clipboard operation
Microsoft.Maui.Graphics copied to clipboard

Cannot deploy simple MAUI application in Mac Catalyst with Microsoft.Maui.Graphics.Skia package

Open Ramaraj-Marimuthu opened this issue 3 years ago • 2 comments

Hi Team,

I am facing below error while building the simple MAUI application with Microsoft.Maui.Graphics.Skia package in Mac Catalyst environment.

Could you please help me to address this issue ?

Thanks in advance.

Error Message:

/Users/ram/.nuget/packages/skiasharp.nativeassets.maccatalyst/2.88.0-preview.155/buildTransitive/net6.0-maccatalyst13.5/SkiaSharp.NativeAssets.MacCatalyst.targets(34,34): Error MSB4184: The expression "[System.IO.File]::GetAttributes(bin/Debug/net6.0-maccatalyst/maccatalyst-x64/MauiApp1.app/Contents/Frameworks/libSkiaSharp.framework/libSkiaSharp)" cannot be evaluated. Could not find a part of the path '/Users/ram/Documents/Ramaraj/MauiApp1/MauiApp1/bin/Debug/net6.0-maccatalyst/maccatalyst-x64/MauiApp1.app/Contents/Frameworks/libSkiaSharp.framework/libSkiaSharp'. (MSB4184) (MauiApp1)

Replication Procedure:

  1. Create simple MAUI application by referring below link, https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app
  2. Mention net6.0-maccatalyst (My Mac) as your target platform.
  3. Add Microsoft.Maui.Graphics.Skia package version 6.0.101-preview.10.640 in your application.
  4. Build your sample and issue reproduced now.

Note: Without a Microsoft.Maui.Graphics.Skia package application working properly.

Configuration Details:

  1. Visual Studio 2022 for Mac (Preview version)
  2. macOS Monterey version - 12.0.1
  3. MacBook Air (M1, 2020)

Attached a simple sample for references. MauiApp.zip

Screenshot of the issue:

image

Ramaraj-Marimuthu avatar Dec 08 '21 07:12 Ramaraj-Marimuthu

Hi Team,

Any update in this ? It will be helpful for us.

Thanks, M. Ramaraj.

Ramaraj-Marimuthu avatar Dec 14 '21 06:12 Ramaraj-Marimuthu

Hi Team,

Still I'm waiting for your reply. Thanks in advance.

Thanks, M. Ramaraj.

Ramaraj-Marimuthu avatar Jan 17 '22 16:01 Ramaraj-Marimuthu