Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build information in iOS Application (date/time app was built)

I'm looking for a way to dynamically add in information about the application during the build process of an iOS application.

During testing, it would be great to know when the application I have installed on my device was built and possibly who built it would be a good to know as well.

I'm envisioning a section in settings.app that would give basic build information for debugging purposes. I don't want to have to manually update a build information file before each build - the data should be generated dynamically.

like image 652
Josh Schumacher Avatar asked Jan 31 '11 19:01

Josh Schumacher


People also ask

How is an iOS app built?

Xcode is Apple's IDE (Integrated Development Environment) for both Mac and iOS apps. Xcode is the graphical interface you'll use to write iOS apps. Xcode includes the iOS SDK, tools, compilers, and frameworks you need specifically to design, develop, write code, and debug an app for iOS.

What is build for testing Xcode?

Description. The Step runs Xcode's xcodebuild command with the build-for-testing option. This builds your app and associated tests so that you can, for example, upload it to a third-party testing service to run your tests on a real device.

Is TestFlight release or debug?

Thank you for taking the time to write up a response. The thing is, I'm able to distinguish between production and debug mode, but the problem is that builds distributed with TestFlight are marked as release. This means users testing the TestFlight version will use the production database.

Do I need to build before archive Xcode?

Make sure your build is successfulBefore beginning to archive your build, you need to make sure that the build is successful not only for Debug, for also for Release.


1 Answers

You can also use standard macro __DATE__ which will result string like "Jun 25 1980" of course with proper current date of build.

like image 103
sha Avatar answered Oct 13 '22 01:10

sha