The following seems to work from experimentation...

For an application installed through TestFlight Beta the receipt file
is named StoreKit\sandboxReceipt vs the usual StoreKit\receipt. Using
[NSBundle appStoreReceiptURL] you can look for sandboxReceipt at the
end of the URL.

NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSString *receiptURLString = [receiptURL path];
BOOL isRunningTestFlightBeta =  ([receiptURLString
rangeOfString:@"sandboxReceipt"].location != NSNotFound);

sandboxReceipt is also the name of the receipt file when running builds locally.

On Thu, Oct 30, 2014 at 10:38 AM, David Hoerl <dho...@mac.com> wrote:
> Can an iOS app examine some property to determine if its been installed as a
> development style app (ie Test Flight, or Xcode, etc), or was installed via
> the App Store.
>
> [I support a library where the app is suppose to pass a flag, but clients
> are making errors...]
>
> David
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/websites%40paperetto.com
>
> This email sent to websi...@paperetto.com



-- 
David Brittain
da...@paperetto.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to