swift中import UIKit报错

看看是不是新建的playground项目是macOS的。只有在iOS中才有UIKit框架,macOS是没有的,swift也没有。就目前而言。

原文地址:https://www.cnblogs.com/xiao-xiao-/p/11080873.html