let info = Bundle.main.infoDictionary
下面是key
CFBundleDisplayName //appName
CFBundleIdentifier //appID
CFBundleShortVersionString //app version
CFBundleVersion //app build
在工程里找到 Info.plist, 右键->open as-> source code
里面有你想要的各种key
[[NSBundle mainBundle] infoDictionary];