2

I have a requirement in my application that, i need to show .ipa file creation date using swift.

Can anybody tell me how to do that.

Thanks in advance.

Leo Dabus
  • 216,610
  • 56
  • 458
  • 536
Logger
  • 1,255
  • 1
  • 13
  • 24

1 Answers1

5

You can get the url of your app using Bundle property executableURL and use url method resourceValues to get the bundle creation date:

if let executableURL = Bundle.main.executableURL,
    let creation = (try? executableURL.resourceValues(forKeys: [.creationDateKey]))?.creationDate {
    print(creation)
}
Leo Dabus
  • 216,610
  • 56
  • 458
  • 536