Xcode 8 Breakpoint in file not working
<p>I have one file,<code>SignInViewController.swift</code>, in my Xcode project that out of nowhere has begun not stopping on breakpoints. I have a breakpoint in <code>viewDidLoad()</code> and a few in <code>viewDidAppear()</code>. I have several <code>print()</code> calls in both functions to make sure they are executing. Breakpoints work fine in other files including <code>AppDelegate.swift</code>.</p>

<p>There was a point when I trying to figure out what was wrong where I noticed that while I was building the project an error would appear saying <code>Invalid redeclaration of 'signInViewController.swift'</code> and then go away before the build finished and the app would run fine, except for the breakpoints in the file. <code>signInViewController.swift</code> is the old name of the file from months ago before I renamed it to <code>SignInViewController.swift</code>. I haven't seen it before until the breakpoint issue occurred and since I have cleaned the project's build folder and Xcode's derived data I have been unable to replicate. I have a feeling that it is factoring into the problem but I am not sure how/why.</p>

<p>Anyways, here is things I've tried already. Most of them are just for breakpoints not working in general but I figure I should list them anyways even though that is not the case:</p>

<blockquote>
  <ol>
  <li>Clean Project</li>
  <li>Clean Build Folder</li>
  <li>Clear Xcode's DerivedData</li>
  <li>Making sure breakpoints are enabled (Cmd Y)</li>
  <li>Build Settings are set to Debug</li>
  <li>Always Show Disassembly enabled and disabled</li>
  <li>Debugging enabled in run config</li>
  </ol>
</blockquote>

<p>Any help would be very much appreciated.</p>

<p><strong>UPDATE 1</strong> (still no luck):</p>

<blockquote>
  <ol start="8">
  <li>Tried deleting the Xcode preference as suggested by neprocker's answer <a href="https://stackoverflow.com/a/39923153/5666995">here</a></li>
  </ol>
</blockquote>

<p><strong>UPDATE 2</strong>:</p>

<p>I have isolated the breakpoint issue to just <code>viewDidLoad()</code> and <code>viewDidAppear()</code> breakpoints elsewhere in the file are working. </p>

<p><strong>UPDATE 3</strong>:</p>

<p>Isolated to a specific block of code in <code>viewDidLoad()</code>. <code>viewDidAppear()</code> still not working though.</p>