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

During build: libSkiaSharp.dylib could not be found #210

Closed
vrapp opened this issue Aug 5, 2024 · 8 comments
Closed

During build: libSkiaSharp.dylib could not be found #210

vrapp opened this issue Aug 5, 2024 · 8 comments

Comments

@vrapp
Copy link

vrapp commented Aug 5, 2024

Whenever I build the project using BarcodeStandard in Visual Studio in Windows (same in 2017 and 2022), there's warning:

The referenced component 'c:\users\myusername\projects\thisproject\packages\SkiaSharp.NativeAssets.macOS.2.88.8\build\net462....\runtimes\osx\native\libSkiaSharp.dylib' could not be found.

In fact this file does seem to exist and is found during the build, according to Process Monitor:
1

If it's related to MacOS, maybe it would be possible to somehow conditionally exclude it from the NuGet package.

@barnhill
Copy link
Owner

Not sure but Im compiling it on a windows machine and dont seem to have any issues. Would you be willing to take a look at this issue for mac builds?

@barnhill
Copy link
Owner

barnhill commented Aug 17, 2024

looks like its an invalid reference which I just removed and it builds just fine with no more warning. Going to update it and the dependencies now and republish a new version up to nuget

@barnhill
Copy link
Owner

addressed this issue here: #211

@barnhill
Copy link
Owner

This should now be fixed in 3.1.4 that has just been uploaded to NuGet and will be available as soon as they run their checks on it.

@vrapp
Copy link
Author

vrapp commented Aug 20, 2024

Thanks! It's fixed.

@vrapp
Copy link
Author

vrapp commented Aug 21, 2024

...spoke too soon. It's back. I removed NuGet package from the solution as well as all skiasharp packages . Deleted everything in bin and obj folders. Searched for all files with "libSkiaSharp.dylib" inside in the project folder and ensured there's nothing. Re-added NuGet package of Barcodelib 3.1.4. This brought back Skiasharp, SkiaSharp.NativeAssests.Linux.Dedependencies, SkiaSharp.NativeAssessts.macOS, and the error reappeared.

The referenced component 'C:(...)\packages\SkiaSharp.NativeAssets.macOS.2.88.8\build\net462....\runtimes\osx\native\libSkiaSharp.dylib' could not be found.

@barnhill
Copy link
Owner

Are you building this in visual studio or jetbrains rider?

@vrapp
Copy link
Author

vrapp commented Aug 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants