IAPHelper
IAPHelper copied to clipboard
Production variable should have failsafe when app is live
As it currently stands, if a dev forgets to set the production boolean to YES upon submitting for the AppStore issues can incur with receipt validation. (app will use Apple's sandbox verification server URL instead of their production verification server URL)
IAPHelper should utilize CLANG macros as a failsafe to automatically force that variable to YES if app is in release mode not debug mode.
#ifdef DEBUG
#define releaseBuild NO
#else
#define releaseBuild YES
#endif
Then in IAPHelper.m:
if (_production) {
Should now read:
if (_production || releaseBuild) {