SDWebImageSwiftUI: Missing required module 'SDWebImage'

Not sure if this is an SDWebImageSwiftUI/SDWebImage issue, or a Swift Package Manager issue, but when I have an iOS app with an accompanying watchOS app, and include SDWebImageSwiftUI in both the iOS app and watchOS app extension (via SPM), building the watchOS app using the watchOS app scheme succeeds, but when trying to build the iOS app, the watchOS app build fails with an error in the SDWebImageSwiftUI library:

No such module 'SDWebImage'

If I remove the SDWebImageSwiftUI library from the watchOS app extension, I get an error in the watchOS app extension:

Missing required module 'SDWebImage'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 17

Most upvoted comments

Screenshot 2022-02-01 at 8 29 53 PM

^ if you are getting error in XCTests or XCUITest then select your test targate and perform this

Afraid I’m seeing this in XCode 13. Note that the project does compile and run correctly; the bug seems to be in Tests iOS, and interrupts SwiftUI previews.

image

I am getting this issue in XCode 12, tried both SPM as well as Cocoapods. I added a new WatchOS target to my existing iOS app and later on I get the error No such module 'SDWebImageSwiftUI' Both the projects fails to build … any clue?

I also hit this error, but only on the XCode 11.4 Beta.

@joeycarmello @adamayoung

This issue seems been solved by Xcode 11.4-Beta3.

Check SDWebImage/SDWebImage#2941