-
Notifications
You must be signed in to change notification settings - Fork 546
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] SKImageSourceHandler not found in 1.68.1 for iOS project #1042
Comments
Just checking that you have installed the SkiaSharp.Views.Forms NuGet into the iOS project? That type should be in that package. I can see it there: https://www.fuget.org/packages/SkiaSharp.Views.Forms/1.68.1/lib/xamarin.ios/SkiaSharp.Views.Forms.dll/SkiaSharp.Views.Forms/SKImageImageSource |
This is what we are getting on iOS project |
@mattleibow is it because of this change in nuspec? |
It shouldn't be since iOS is .NET Standard 2.0 and the type should be in THAT nuget, not the dependencies. Let me have a look at your repo. |
All the assemblies are required to be in the ref folder as if there is any ref folder, it will take precedence over the lib folder. In the case where we have JUST the netstandard library in the ref, that is used for ALL platforms. Even though the correct assembly is swapped out at compile time, we actually have more things inside the assembly for the platforms.
I had a look and I see what is happening here. I moved the netstandard library into the ref folder in the nuget so that it won't actually run. But, it appears that the ref folder overrides ALL the platforms. This typically is fine if the APIs are the same, but because we have more public types (such as SKImageSourceHandler) in the iOS (and the others) this doesn't work. Fixing this in #1044 and I hope to push this out ASAP. I have a few fixes in there as well. |
@pmahend1 Thanks for reporting this issue. I have pushed out a fix to the preview feed: Try version |
I checked ,it seem to have fixed the issue. @mattleibow Please let me know once you release into nuget org. |
Awesome. Will do. |
Description
SKImageSourceHandler not found in 1.68.1 for iOS projecct
Code
Expected Behavior
Should be found
Actual Behavior
Compile error
Basic Information
Target Devices: NA
Screenshots
Reproduction Link
SkiaImageSourceHandlerIssue
The text was updated successfully, but these errors were encountered: