title: What is causing this: Cannot jump from switch statement to this case label
body: <p>This is a switch statement that I am getting errors on:</p>
  
  <pre><code>        switch (transaction.transactionState) {
  
          case SKPaymentTransactionStatePurchasing:
  
              // show wait view here
              statusLabel.text = @"Processing...";
              break;
  
          case SKPaymentTransactionStatePurchased:
  
              [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
  
              // remove wait view and unlock iClooud Syncing
              statusLabel.text = @"Done!";
  
              NSError *error = nil;
              [SFHFKeychainUtils storeUsername:@"IAPNoob01" andPassword:@"whatever" forServiceName: kStoredData updateExisting:YES error:&amp;error];
  
              // apply purchase action  - hide lock overlay and
              [oStockLock setBackgroundImage:nil forState:UIControlStateNormal];
  
              // do other thing to enable the features
  
              break;
  
          case SKPaymentTransactionStateRestored:
  
              [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
  
              // remove wait view here
              statusLabel.text = @"";
              break;
  
          case SKPaymentTransactionStateFailed:
  
              if (transaction.error.code != SKErrorPaymentCancelled) {
                  NSLog(@"Error payment cancelled");
              }
              [[SKPaymentQueue defaultQueue] finishTransaction:transaction];
              // remove wait view here
              statusLabel.text = @"Purchase Error!";
              break;
  
          default:
              break;
      }
  </code></pre>
  
  <p>The last two cases, plus the default, are giving me the following error:</p>
  
  <blockquote>
    <p>Cannot jump from switch statement to this case label</p>
  </blockquote>
  
  <p>I have used the switch statement many, many times; this is the first time I have seen this.   The code has been copied from a tutorial (<a href="http://xcodenoobies.blogspot.com/2012/04/implementing-inapp-purchase-in-xcode.html" rel="noreferrer">here</a>), which I am trying to adapt for my app.  Would appreciate the help on this one.  SD</p>