Post not yet marked as solved
Post marked as unsolved with 6 replies, 1,706 views
My app exists since years and while submiting a very small update to fix important bugs, my app has been rejected.Reason: "We discovered that your app contains hidden features. Specifically, this app has been found to contain features to determine the review status of the app." No additional info 😢To help developers during tests, in the app we display the version, build number and origin. The origin tells if the app has been installed form TestFlight, Xcode, AdHoc or App Store. This is the code we use to detect the origin:char *gmu_apl_get_app_dist(void)
{
#ifdef DEBUG
bool debug = true;
#else
bool debug = false;
#endif
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSString *receiptURLString = [receiptURL path];
bool testFlight = ([receiptURLString rangeOfString:@"sandboxReceipt"].location != NSNotFound);
bool provisioned = [[NSBundle mainBundle] pathForResource:@"embedded" ofType:@"mobileprovision"];
int dist = (debug ? (1 << 0) : 0)
| (testFlight ? (1 << 1) : 0)
| (provisioned ? (1 << 2) : 0);
char *ret = "?";
asprintf(&ret, "D%d", dist);
return ret;
}Could this be the reason of the rejection?We also use Segment SDK (Analytics.framework). Maybe something wrong there?