Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode throws random errors when there are none
    primarykey
    data
    text
    <p>Every <em>once in a while</em>, usually after I've done some <strong>trial and error</strong> on my code, Xcode <strong>throws random errors at me</strong> even though I've removed the previous incorrect code snippets, and even though I've restored my files to a stage where it last worked perfectly. In other words, <strong>there are no errors</strong> for sure, <strong>yet my app crashes and Xcode generates errors</strong>. I shall also add that when my iPhone isn't connected to my computer, the app runs just fine.</p> <p>After having <strong>removed everything that did cause errors</strong> in the past, Xcode - as described above - instead points to random stuff as being incorrect such as closing brackets, viewDidLoad, <strong>as if saying:</strong> <em>"Hey, I know there was an error before, can't find it now though but I know it's there somewhere so lets crash and point at something completely random such as a closing bracket"</em>.</p> <p>I assume the <strong>old project files are being cached</strong> (or similar) somewhere but I can't for the life of me figure out where or how to get rid of them. I'm using <strong>Xcode 4.5.2</strong>, <strong>iPhone 5 iOS 6.0.2</strong>, <strong>OSX 10.8.2</strong> fwiw.</p> <h2>What I've tried so far:</h2> <ol> <li>Clean, build, run, clean, rebuild, re-run. <strong>[no change]</strong></li> <li>Restart X-code, remove icon from home screen, step 1 again <strong>[no change]</strong></li> <li>Restart computer <strong>[no change]</strong></li> <li>Restart iPhone and simulator and reset simulator to factory settings <strong>[no change]</strong></li> <li>Delete the Derived Data from organizer as shown <a href="http://developer.apple.com/library/mac/#recipes/xcode_help-projects_organizer/articles/about_projects_organizer.html" rel="nofollow noreferrer">here</a>, and suggested <a href="https://stackoverflow.com/questions/12664937/xcode-highlighting-random-lines-and-calling-errors-when-there-isnt-any">here</a> <strong>[no change]</strong></li> <li>All above including restoring my entire iPhone <strong>[Works]</strong></li> <li>Create a new project and rebuild the nib file and copy past code from old project to new <strong>[Works]</strong></li> </ol> <p>Yes, <strong>alternative 6 and 7 do work</strong> but I can't spend hours on restoring my iPhone to factory settings or recreate my entire Xcode project every time this happens. Alas, it does happen quite often these days.</p> <p>Any other <strong>ideas or suggestions?</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload