'main' attribute cannot be used in a module that contains top-level code 问题解决

核心是@main 注解在main.swift 文件中,可以重新命名下

参考资料

https://stackoverflow.com/questions/73431031/swift-cli-app-main-attribute-cannot-be-used-in-a-module-that-contains-top-leve

posted on 2023-09-22 22:15  荣锋亮  阅读(49)  评论(0编辑  收藏  举报

导航