SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[ISSUE] The referenced component 'C:\Users\USERNAME\.nuget\packages\skiasharp\2.80.3\buildTransitive\xamarinios1.0\..\..\build\xamarinios1.0\libSkiaSharp.framework' could not be found.

Open Auto72 opened this issue 3 years ago • 4 comments

Description

I'm trying to compile my Xamarin Forms project with Visual Studio 2022 and I'm getting the following error:

The referenced component 'C:\Users\USERNAME.nuget\packages\skiasharp\2.80.3\buildTransitive\xamarinios1.0....\build\xamarinios1.0\libSkiaSharp.framework' could not be found.

Code

It seems a problem related to the NuGet package or reference, not a code problem.

Expected Behavior

No warning and able to compile and run the application.

Actual Behavior

Warning and the application does't run.

Basic Information

  • Version with issue: 2.80.3

  • Last known good version: none

  • IDE: Visual Studio 2022

  • Platform Target Frameworks:

    • Android: 12
    • iOS: Default SDK Version (15)
  • Target Devices:

  • iPad Air 4th generation

I use Visual Studio 2022 now. Before I had Visual Studio 2019 and I used to get this warning every time I compiled, but at that time I found an entry in the reference of the iOS project with yellow exclamation mark, and I was able to delete it and recompile. Now, in Visual Studio 2022 I don't see this entry in the reference and I can't compile.

Screenshots 2 3 4

Reproduction Link

Auto72 avatar Dec 09 '21 10:12 Auto72

I'm having this exact problem. Is there a solution?

ldl01031 avatar Mar 05 '22 06:03 ldl01031

I still having this issue and I am not aware of any fix or workaround.

Warning The referenced component 'C:\Users\USERNAME.nuget\packages\skiasharp\2.80.3\buildTransitive\xamarinios1.0....\build\xamarinios1.0\libSkiaSharp.framework' could not be found.

Auto72 avatar Mar 07 '22 08:03 Auto72

Hi, Anyone with the solution?

Edgar-Develop avatar Aug 01 '22 21:08 Edgar-Develop

We had a very similar problem today - as it happened, removing all the skia package folders from C:\Users<username>.nuget\packages and doing a full rebuild in VS resolved it. Random guess: Somehow the native ios package had been corrupted, maybe when it was initially downloaded?

djcsavoy avatar Aug 30 '22 09:08 djcsavoy

The OP issue was probably a corrupted nuget download. Closing this for now, feel free to open a new issue if it returns.

mattleibow avatar Apr 24 '24 07:04 mattleibow