How to Empty Caches and Clean All Targets Xcode 4 and later

后端 未结 12 2238
囚心锁ツ
囚心锁ツ 2020-11-21 07:07

Jonathan suggest here: Xcode Includes .xib files that have been deleted! that cleaning all targets and empty the caches will fix the problem with Xcode including deleted .xi

12条回答
  •  既然无缘
    2020-11-21 07:59

    In addition to doing the following, you may experience this issue if your app's Storyboard's files are localized. First, do each of these:

    • Clean Build
    • Reset Simulator
    • Restart Xcode
    • Delete your DerivedData folder in ~/Library/Developer/Xcode/DerivedData
    • Restart Computer

    What finally worked for me was re-generating the storyboard localization files and deleting the English localization (which was unneeded because the Base Locale is English). To reload your Storyboard strings, see this answer on StackOverflow.

    I had noticed that the non-text parts of my Storyboard were being updated, but not the localized text. If you have a localization in your app, I would recommend checking to make sure your localizations are updated (even if they're .strings files).

提交回复
热议问题