Leanghorn
Leanghorn

Reputation: 43

How Can I get iOS build version using swift? Ex: iOS 11.3 (15E216)

Note: I don't want APP Build.

 print(UIDevice.current.systemVersion) //OUTPUT "11.3"

How can I get the Build String "15E216" ?

Upvotes: 2

Views: 157

Answers (1)

Kamran
Kamran

Reputation: 15238

You can get the full string having version and build with this line,

print(ProcessInfo.init().operatingSystemVersionString)

You should get the result in below format,

Version 11.3 (Build 15E216)

Upvotes: 2

Related Questions