【发布时间】:2021-11-17 21:35:33
【问题描述】:
在 Swift 中,在运行时,是否可以知道正在运行的模块代码的名称?
我想要类似的东西(这完全是虚构的代码)
let moduleName: String = CompileTimeInfo.moduleName
【问题讨论】:
-
你需要这个做什么?
-
这将有助于构建设置的运行时验证。
标签: swift reflection module runtime