IAPHelper icon indicating copy to clipboard operation
IAPHelper copied to clipboard

Production variable should have failsafe when app is live

Open Apps4LifeLLC opened this issue 6 years ago • 0 comments

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) {

Apps4LifeLLC avatar Mar 27 '18 03:03 Apps4LifeLLC