Skip to content

Instantly share code, notes, and snippets.

@EJunWhite
Created August 31, 2018 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EJunWhite/5d7cef2dae192fd988deefce8a5e11bd to your computer and use it in GitHub Desktop.
Save EJunWhite/5d7cef2dae192fd988deefce8a5e11bd to your computer and use it in GitHub Desktop.
let CFBundleShortVersionString = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as? String
let CFBundleVersion = Bundle.main.infoDictionary!["CFBundleVersion"] as? String
let CFBundleName = Bundle.main.infoDictionary!["CFBundleName"] as? String
print("Application Version Number: \(CFBundleShortVersionString)")
print("Application Build Number : \(CFBundleVersion)")
print("Application Name : \(CFBundleName)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment