How to expire a beta version of your iOS app

The following short code example demonstrates one approach to expire a beta version of your app. The exit() function is called upon reaching the expiration date, so limit this code to beta cycles.