10

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.

cheesey
  • 516
  • 7
  • 18

2 Answers2

15

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
Gregor
  • 585
  • 8
  • 19
  • 1
    Thank you! This should be the accepted answer! Of course I know that **build** will remove the phantom errors but that is not a valid alternative for working live checker what is an important part of almost every modern IDE. – davis Jun 21 '17 at 09:25
4

This is a common occurrence in Xcode.
You can simply press cmd+b to build the project. That will remove any errors.

Hope that helps :)

LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174