xcode

Xcode not refreshing code so errors still display


I was wondering if there is a refresh short cut for refreshing code because there has been many times I'm fixing a "error" and the code doesn't refresh so i don't if i fixed it and the error still remains but the problem is fixed.


Solution

  • Coding without live issues? No thanks!

    This problem appeared after renaming my Xcode project and some combination of these steps fixed it for me:

    1. Uncheck / recheck "Show live issues" under File > Project settings > General
    2. Clean build folder (open the Product menu and hold the "option" key)
    3. Delete derived data (How to delete derived data in Xcode 8?)
    4. Restart Xcode