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
  • 229,809
  • 59
  • 489
  • 571
Logger
  • 1,274
  • 1
  • 14
  • 25

1 Answers1

7

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
  • 229,809
  • 59
  • 489
  • 571