title: NSURLConnection sendAsynchronousRequest in static library crashes on simulator
body: <p>I am compiling a static library (FAT binary) that includes the following:</p>
  
  <pre><code>    NSURL *url = [NSURL URLWithString:urlString];
      NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
      NSOperationQueue *queue = [[NSOperationQueue alloc] init]; // also tried [NSOperationQueue mainQueue]
      [NSURLConnection sendAsynchronousRequest:request queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
          // CRASH BEFORE BLOCK EXECUTES
          NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response;
          ...
  </code></pre>
  
  <p>The code in itself runs fine if compiled with the app on a device and the simulator but it crashes when used as a static library in another app ONLY on the simulator. The static library works fine on an iOS device. The crash is a <code>EXC_BAD_ACCESS</code> and by doing some logging, I narrowed it down to the <code>sendAsynchronousRequest</code>. The block does not get called.</p>
  
  <p>Any idea what could be wrong?</p>