Skip to content
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

[BUG]-"libSkiaSharp.framework" in item list "NativeReference" does not define a value for metadata "FrameworkFilename". #1879

Closed
MohanaselvamJ opened this issue Dec 6, 2021 · 6 comments · Fixed by #2198
Milestone

Comments

@MohanaselvamJ
Copy link

MohanaselvamJ commented Dec 6, 2021

Description

libSkiaSharp.framework" in item list "NativeReference" does not define a value for metadata "FrameworkFilename". In order to use this metadata, either qualify it by specifying %(NativeReference.FrameworkFilename), or ensure that all items in this list define a value for this metadata.

Code

Simple Maui Sample

Expected Behavior

SkiaSharp.Harfbuzz should work in ios

Actual Behavior

Throws error while deploying in iOS

Basic Information

NuGets used:
image

  • IDE: Microsoft Visual Studio Professional 2022 (64-bit) - Preview, Version 17.1.0 Preview 1.1
  • Platform Target Frameworks: Maui sample targetting iOS
    • Android:
    • iOS: iphone 13 iOS 15.0 Simulator. (XCode 13.1 is installed in Mac machine)
    • Linux:
    • macOS: macOS 11.5.2

Replication steps:

  1. Create simple Maui sample
  2. Add SkiaSharp.Harfbuzz 2.88.0-preview.155
  3. Deploy in iOS Simulator or device.

It shows below error while deploying.

Error list:

image

Build window:
image


**Note: This issue not occurs while using SkiaSharp alone https://www.nuget.org/packages/SkiaSharp/2.88.0-preview.155**

@MohanaselvamJ
Copy link
Author

@mattleibow , could you please have a look on this.

Does SkiaSharp.HarfBuzz not compatible for Maui?

@slarti-zak
Copy link

We are also experiencing this with the preview.179

Navigating to the error source, it opens the HarfBuzzSharp.NativeAssets.iOS.targets file, which references issue dotnet/macios#11667 for iOS.

@maxkatz6
Copy link
Contributor

Seems to be fixed with latest SkiaSharp version and .NET 6.0.200 SDK installed (including latest workloads).
After #1958

@dotMorten
Copy link

We also hit this. When using our nuget package Esri.ArcGISRuntime.Maui with yours, this error comes up.

Error MSB4096 The item "C:\Users\mn.nuget\packages\esri.arcgisruntime.runtimes.ios\100.14.1\buildTransitive\net6.0-ios13....\framework\iossimulator-x64\native\ArcGIS-simx64.framework" in item list "NativeReference" does not define a value for metadata "FrameworkFilename". In order to use this metadata, either qualify it by specifying %(NativeReference.FrameworkFilename), or ensure that all items in this list define a value for this metadata. MauiSignin C:\Users\mn.nuget\packages\skiasharp.nativeassets.ios\2.88.0\buildTransitive\net6.0-ios13.6\SkiaSharp.NativeAssets.iOS.targets 6

@Rbhavsar2022
Copy link

Issue with SkiaSharp.Extended.UI.Maui Version=2.0.0-preview.59, When using our nuget package Esri.ArcGISRuntime.Maui Version=100.14.1-preview3

/Users/xxxx/.nuget/packages/skiasharp.nativeassets.ios/2.88.1-preview.91/buildTransitive/net6.0-ios13.6/SkiaSharp.NativeAssets.iOS.targets(9,9): Error MSB4096: The item "/Users/xxxx/.nuget/packages/esri.arcgisruntime.runtimes.ios/100.14.1/buildTransitive/net6.0-ios13/../../framework/iossimulator-x64/native/ArcGIS-simx64.framework" in item list "NativeReference" does not define a value for metadata "FrameworkFilename". In order to use this metadata, either qualify it by specifying %(NativeReference.FrameworkFilename), or ensure that all items in this list define a value for this metadata. (MSB4096)

@epsmae
Copy link

epsmae commented Aug 5, 2022

Same happens with:

SkiaSharp.Views.Maui.Controls
SkiaSharp.Views.Maui.Controls.Compatibility

Commenting out the workaround from "skiasharp.nativeassets.ios\2.88.0\buildTransitive\net6.0-ios13.6\SkiaSharp.NativeAssets.iOS.targets" allows the build and runs successful in debug and release.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants