guard let info = Bundle.main.infoDictionary,
let projectName = info["CFBundleExecutable"] as? String else { return }
let nameSpace = projectName.replacingOccurrences(of: "-", with: "_")
print(nameSpace)
Swift获取当前项目名的方法
最新推荐文章于 2024-07-24 10:49:10 发布