In my iOS app I need to find the Date
when app was compiled and show it.
Is there a way to figure it out without setting the date manually?
In my iOS app I need to find the Date
when app was compiled and show it.
Is there a way to figure it out without setting the date manually?
In my iOS app I need to find the Date when app was compiled and show it.
You can use a shell script to write the date into a file that's included in the app's assets. Run the script as an early step in the build process using a "Run Script" build phase in your target's Build Phases. Then add code to your app that finds the file and reads the date. I'd recommend using either property list or JSON file formats here to make reading the date easy. If you go with a property list, there's a command line tool called PlistBuddy
that'll make it easy to write your shell script.