【发布时间】:2021-01-06 08:11:25
【问题描述】:
在我使用 Swift 5 和 Catalina 10.15.5 的 Xcode 12.0 中:当我将 Mac 勾选为可部署目标(Apple Project Catalyst)并单击运行时,它会显示错误:
'AppDelegate' is annotated with @main and must provide a main static function of type () -> Void or () throws -> Void.
在互联网上找不到任何东西...我检查了我的代码,没有任何问题,它可以在 iOS 设备和模拟器上运行。调试日志为空(呃……)
有人遇到这个问题吗?
【问题讨论】: