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

后端 未结 12 2252
囚心锁ツ
囚心锁ツ 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:44

    To delete all derived data and the module cache in /var/folders use this little ruby script.

    derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*")
    moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*")
    FileUtils.rm_rf derivedDataFolder + moduleCache
    

    This just solved a fatal error: malformed or corrupted AST file: 'Unable to load module "/var/folders/ error for me.

提交回复
热议问题