title: Running app in Debug via Xcode vs running app manually
body: <p>I have a Cocoa application. It runs fine via <code>XCode 6</code>, but when I run it manually via <code>Finder</code>, it behaves very strange: it seems that only the static <code>XIB</code> loads, no other code gets <code>executed</code>.</p>
  
  <p>Do I need to sign it in order to work? I also tried archiving. For any clues, this is the code that executes first:</p>
  
  <pre><code>NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:url]];
          [request setHTTPMethod:verb];
          NSData *data = [qs dataUsingEncoding:NSUTF8StringEncoding];
          [request setHTTPBody:data];
  
      NSError *err;
      NSURLResponse *response;
      NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;err];
  
      NSString *resSrt = [NSString stringWithFormat:@"%@", responseData];
  </code></pre>
  
  <p>Yes, there are HTTP requests made first in <code>applicationDidFinishLaunching</code> for the design to change.</p>
  
  <p>Thank you!</p>
  
  <p>EDIT: Forgot to mention that I use <code>dispatch_queue_t</code> and <code>dispatch_async</code> for those requests, so I am not blocking the main thread.</p>