title: Code not working once deployed
body: <p>I've got the following code in a thread in my application: </p>
  
  <pre><code>while (true) {
      if (ready) {
          progressIndicatorController.value++;
          return;
      }
  }
  </code></pre>
  
  <p>The ready variable is changed from a delegate method. This code works great when I open the application by clicking the "Run" button in Xcode's toolbar. However, if I open this application's .app (which I create by clicking Product > Archive and then following the steps) this code somehow doesn't work anymore.</p>
  
  <p><code>progressIndicatorController.value</code> is never incremented and this if-statement never evaluates to <code>true</code>. What could cause this problem?</p>