Apple's Receipt Validation Programming Guide suggests testing for the existence of the app's receipt at the earliest point in the app's launch:
Implement this check in the main function, before the NSApplicationMain function is called.
They say:
If no receipt is present, validation fails.
But Apple neglects to say how this validation failure should be handled.
This Question, call exit(0) in iphone app, says that an iOS app should not be exited programmatically.
So what should I do if the app has no receipt? Catch-22… Apple says to make the check before presenting any UI but also says to never quit the app without a UI.
To address the vote-to-close… My question is:
- What are my technical options for how to "not run" my iOS app?
- What are my technical risks given that Apple specifically recommends testing for a missing receipt before generating any UI?