siteline / swiftui-introspect

Introspect underlying UIKit/AppKit components from SwiftUI
MIT License
5.55k stars 343 forks source link

cannot find type 'PlatformView' in scope #111

Closed luxio closed 10 months ago

luxio commented 3 years ago

When trying to preview an Apple Watch SwiftUI View in the canvas in Xcode, I get this error:

SchemeBuildError: Failed to build the scheme "WatchApp"

cannot find type 'PlatformView' in scope

Any ideas, how to fix this?

moyoteg commented 1 year ago

@luxio did you ever find a solution? 🤷‍♂️

davdroman commented 1 year ago

@luxio @moyoteg could either of you share a small reproducible project please? I'm not at all experienced with watchOS development so I'm not sure how to set up an Xcode project to reproduce this.

davdroman commented 1 year ago

Closing due to inactivity. Anybody feel free to re-open with a relevant reproducible example so we can finally get to the bottom of it.

sergeirr commented 10 months ago

@davdroman I faced same problem and found issue related question with description and possible workaround for developers https://developer.apple.com/forums/thread/731732