SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

SwiftUI Preview: missing required module 'SDWebImage'

Open sugarwyc opened this issue 4 years ago • 5 comments

SwiftUI Preview does not work after importing SDWebImageSwiftUI dependency.

Xcode 13.2.1

image

sugarwyc avatar Jan 05 '22 00:01 sugarwyc

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.

pontusjacobsson avatar Sep 21 '22 06:09 pontusjacobsson

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

dreampiggy avatar Sep 21 '22 07:09 dreampiggy

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

lidorf-gurushots avatar Mar 13 '23 12:03 lidorf-gurushots

Getting this issue today. Any fixes?

jpmcglone avatar Apr 21 '23 20:04 jpmcglone

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

dreampiggy avatar Apr 23 '23 10:04 dreampiggy