1

my app has an About dialog that displaying the content as "Build time: 2013/05/14 14:20". The "Build time" can update when archive. I can update it manually, but sometime I forget it. I try to research how to update "build time" when archive like this: Running script only for an 'Archive' build in Xcode 4

I hope your helps!

p/s: Sorry for my poor english

Community
  • 1
  • 1
thanhzusu
  • 123
  • 1
  • 9

1 Answers1

0

Why not populate the About box with values of the predefined C (string) macros __DATE__ and __TIME__ rather than setting them manually?

trojanfoe
  • 120,358
  • 21
  • 212
  • 242
  • Thanks for your answer! I mean that "Build time" only update when archive app from xcode. – thanhzusu May 14 '13 at 08:39
  • @thanhzusu If you use `__DATE__` and `__TIME__` then it will update whenever you rebuild the code that populates the About content. You might just need to do a clean first before archiving. – trojanfoe May 14 '13 at 09:31