Posts

Post not yet marked as solved
0 Replies
456 Views
Hey guys, I have some SwiftUI code which is inside framework, not in the application code. When I try to use live preview in my app it won't compile in Xcode 12 GM and I see a lot of compilation errors related to SwiftUI module Module 'SwiftUI' has no member named 'Text' Module 'SwiftUI' has no member named 'Button' Module 'SwiftUI' has no member named 'Rectangle' Module 'SwiftUI' has no member named 'Circle' // and so on But it compiles fine if I want to run my project on device or simulator or archive it. Also same project works fine in Xcode 11, even previews. It seems that there are a bug in Xcode12 which haven't been fixed in GM. Cause I can't believe that this is a feature since it will affect a lot of developers all over the world. There shouldn't be that limitation. Seems that related question is here https://developer.apple.com/forums/thread/652621
Posted
by Mihael.
Last updated
.