Why doesn't the XIB file immediately reflect recent Outlet changes?

I have a view controller related to XIB:

__weak IBOutlet UITextField *dateTextField; 

After renaming this field, I can still see the old variable in the XIM File Owner Outlet list. It seems that something is not updating automatically in the XIB file.

After restarting Xcode, the old variable disappeared as expected. I just very rarely have to do this. You need to understand what is happening.

  • Is this normal behavior or a bug in the tool?
  • Can I manually run this update?

Thank you very much.

+4
source share
2 answers

This usually happens because you have not saved the file in which you modified the output file. To solve this problem, without restarting Xcode every time you can just save the title when you change it (since @Steven Fisher indicated that the + command + option + s saves everything), if that doesn't work, the build usually runs (the + command shift + b), and if all else fails, a good cleanup (command + shift + k) should set it straight.

+3
source

This may be delayed when indexing your project. Indexing may take some time, depending on project size, dependencies, etc. Indexing complexity is essentially a good compilation piece, and indexing should not be intrusive (block an IDE or consume all resources).

+1
source

Source: https://habr.com/ru/post/1433097/


All Articles