WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

UIKit isn't supported by Visual Studios Code, how to I fix that.

Forums > iOS

I am doing this on windows 10, so apparently I had to use Visual Studios to do so, when I put import UIKit it says, I cant seems to find the problem, please and thank you! c:\Swift\bin\tempCodeRunnerFile.swift:1:8: error: no such module 'UIKit' import UIKit ^


It doesn't really help to create multiple threads for the same question. If you have additional information to add to your original question, just edit it in rather than creating a new thread.

That said, I'm betting most—if not all—of the people on this forum use Xcode on a Mac to do their Swift programming. You might have more luck with this question at a Visual Studio forum since it's not actually a Swift problem.


Save 50% in my Black Friday sale.

SAVE 50% To celebrate WWDC22, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.