Re: Can an use introspection to determine if its a production app from the App Store?
Re: Can an use introspection to determine if its a production app from the App Store?
- Subject: Re: Can an use introspection to determine if its a production app from the App Store?
- From: Torsten Curdt <email@hidden>
- Date: Fri, 31 Oct 2014 11:00:09 +0100
I just hope that was meant with a wink. If not...
Why would the library itself need to be in swift?
https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html
Just use it from swift.
On Thu, Oct 30, 2014 at 7:38 PM, David Hoerl <email@hidden> wrote:
> Looks great, but I cannot read Objective C anymore - where is the Swift
> version???
>
> On 10/30/14, 2:28 PM, Torsten Curdt wrote:
>
>> You could also inspect the provisioning profile:
>>
>> https://github.com/tcurdt/TCMobileProvision
>>
>> cheers,
>> Torsten
>>
>> On Thu, Oct 30, 2014 at 6:44 PM, David Brittain <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> 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 <email@hidden
>> <mailto:email@hidden>> 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 (email@hidden
>> <mailto:email@hidden>)
>> >
>> > Please do not post admin requests or moderator comments to the
>> list.
>> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> <http://lists.apple.com>
>> >
>> > Help/Unsubscribe/Update your Subscription:
>> >
>> email@hidden
>> >
>> > This email sent to email@hidden
>> <mailto:email@hidden>
>>
>>
>>
>> --
>> David Brittain
>> email@hidden <mailto:email@hidden>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden
>> <mailto:email@hidden>)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> <http://lists.apple.com>
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden <mailto:email@hidden>
>>
>>
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden