No such module 'UIKit' No such module 'UIKit' xcode xcode

No such module 'UIKit'


UIKit is for mobile apps, not MacOS apps. You want AppKit.


  • Open utilities from the top right corner
  • Change the platform to IOS

Then it should be okay to use UIKit


Check the 'show utilities' window. If the platform is set to MacOS, you'll get this error if you're calling UIKit. Same thing goes if your wanting IoS and your calling AppKit.

http://iosbrain.com/blog/2018/08/16/xcode-9-playground-error-no-such-module-uikit-or-appkit/