Swift get app Version & Build

GorgoasTW
1 min readDec 19, 2019

--

Version

let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String

Build

let appBuild = Bundle.main.infoDictionary?["CFBundleVersion"] as? String

--

--

GorgoasTW
GorgoasTW

Written by GorgoasTW

iOS Developer/.NET Developer/Father

Responses (1)