SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.14k stars 219 forks source link

SwiftUI Preview: missing required module 'SDWebImage' #208

Open sugarwyc opened 2 years ago

sugarwyc commented 2 years ago

SwiftUI Preview does not work after importing SDWebImageSwiftUI dependency.

Xcode 13.2.1

image

pontusjacobsson commented 1 year ago

I am having the same problem. We have SDWebImageSwiftUI as dependency in an SPM-package and it works to build but SwiftUI preview fails with the same errors.

dreampiggy commented 1 year ago

Is SDWebImage anything different ? Is just a normal Swift Package using Objc

lidorf-gurushots commented 1 year ago

any updates on this issue? still happens in Xcode 14.2. @dreampiggy

jpmcglone commented 1 year ago

Getting this issue today. Any fixes?

dreampiggy commented 1 year ago

Need a demo project to show this issue. Open SDWebImageSwiftUI/Package.swift can build without error. Is this exists only on a App project (which use Xcode's Package dependency?)


See https://github.com/SDWebImage/SDWebImageSwiftUI/issues/261, seems the demo there can preview the WebImage