Question: I encounter the problem that even though after installing gdb Eclipse still gives out the error message 'Error with command --gdb version' whenever I try to compile my code.
I exactly followed this guide: [Eclipse GDB MacOSX Mavericks](https://stackoverflow.com/questions/19877047/eclipse-gdb-macosx-mavericks), but it didn't fix it. Any ideas what else could be wrong?

Answer: 
As indicated in the answer from where you took that code, Apple recommends to refresh the receipt if validation fails. This is what `RMStore` does to validate a receipt/transaction:

```
RMAppReceipt *receipt = [RMAppReceipt bundleReceipt];
const BOOL verified = [self verifyTransaction:transaction inReceipt:receipt success:successBlock failure:nil]; // failureBlock is nil intentionally. See below.
if (verified) return;

// Apple recommends to refresh the receipt if validation fails on iOS
[[RMStore defaultStore] refreshReceiptOnSuccess:^{
    RMAppReceipt *receipt = [RMAppReceipt bundleReceipt];
    [self verifyTransaction:transaction inReceipt:receipt success:successBlock failure:failureBlock];
} failure:^(NSError *error) {
    [self failWithBlock:failureBlock error:error];
}];

```
I'll just add one thing here - took me a while to figure out why my hash is mismatching...

receipt bundleId example:
ASN1 OCTET STRING (27 byte) 0C19636F6D2E706177656C6B6C61707563682E536B696E4578616D

Which is actually made of Identifier (0C), length (19) and value (63..6D).

**For comparing app.bundleId == receipt.bundleId -> use value only  

For generating hash -> use the whole ASN1 buffer  
 (otherwise SHA1 will result in different value)**