获取配置信息
//顶部信息栏风火轮(等待提醒)
UIApplication.shared.isNetworkActivityIndicatorVisible = true
//读取配置信息
让mainBundle = Bundle.main
//获取程序包的标识符(唯一,不可修改)
let identifier = mainBundle.bundleIdentifier
//获取程序包的所有信息,存在字典目录中
let info = mainBundle.infoDictionary
//获得当前应用程序的名称
_ = mainBundle.object(forInfoDictionaryKey:“CFBundleName”)
//获得当前应用程序的版本号
_ = mainBundle.object(forInfoDictionaryKey:“CFBundleShortVersionString”)
//打印输出应用的唯一标识符
print(“[identifier]:\(String(describe:identifier))”)
print(“[info]:\(String(describe:info))”)