SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] Cannot deploy simple MAUI application in Mac Catalyst with SkiaSharp package

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

Description

Facing below error while building the simple MAUI application in Visual Studio for Mac 2022 (Preview) with SkiaSharp package at Mac Catalyst environment.

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)

Basic Information

  • Version with issue: 2.88.0-preview.155
  • Last known good version: None
  • IDE: Visual Studio 2022 for Mac (Preview)
  • Platform Target Frameworks: net6.0-maccatalyst
    • macOS: 12.0.1
  • Target Devices: MacBook Air (M1, 2020)
Detailed IDE/OS information (click to expand)

Cannot deploy the simple MAUI application in Visual Studio for Mac 2022 (Preview) with [SkiaSharp](https://www.nuget.org/packages/SkiaSharp/) version 2.88.0-preview.155 package at Mac Catalyst environment.

**Note:** This sample is working properly in all other MAUI environments such as Windows, Android, iOS.

Screenshots

image

Reproduction Link

  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 SkiaSharp package version 2.88.0-preview.155 in your application.
  4. Build your sample and issue reproduced now.

Note:

  1. This sample is working properly in all other MAUI environments such as Windows, Android, and iOS.
  2. Without a SkiaSharp package application working properly in Mac Catalyst.

Attached a simple sample for references. MauiAppSkia.zip

Ramaraj-Marimuthu avatar Dec 08 '21 08: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

I am also facing the same problem.

Any help on this?

MohanaselvamJ avatar Jan 17 '22 07:01 MohanaselvamJ

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