NSBundle mainBundle appStoreReceiptURL - different result in one by one launches
<p><code>NSData *data = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]</code></p>

<p>I'm testing in-app purchases. When I try to test a subscription in Sandbox while activation all seems to be ok. In the first re-launch too.</p>

<p>But in the second relaunch the data is suddenly changed (and the results of purchases are changed too). Why? May be the reason is that I've changed the test account to another one?</p>

<pre><code>NSLog(@"manager lu %lu",(unsigned long)[subscriptionProduct.receipt length]);
        NSLog(@"manager receipt %@",[[NSBundle mainBundle] appStoreReceiptURL]);
</code></pre>

<p>this code above gives for first two times this:</p>

<blockquote>
  <p>manager lu 20306 
  manager receipt file:///private/var/mobile/Containers/Data/Application/DC144D8C-608F-46D5-A9BB-34F8E76E1DBC/StoreKit/sandboxReceipt</p>
</blockquote>

<p>and this</p>

<blockquote>
  <p>manager lu 20306 
  manager receipt file:///private/var/mobile/Containers/Data/Application/832D788D-728A-463F-B94A-A8DA6E266647/StoreKit/sandboxReceipt</p>
</blockquote>

<p>but for the last launch this:</p>

<blockquote>
  <p>manager lu 35244 manager receipt
  file:///private/var/mobile/Containers/Data/Application/8B35BA0F-AF4C-4551-A90C-C2690C2DFFE6/StoreKit/sandboxReceipt</p>
</blockquote>

<p>What the hell is this?</p>