iosswift

Unable to open dependencies file (Xcode 14)(Swift 5)


Everytime I try to open up Xcode simulator I get this error

error build: unable to open dependencies file (/Users/INSERTNAMEHERE/Library/Developer/Xcode/DerivedData/Musical-frliqdxsuhgvmmcypwrrrvihqtaa/Build/Intermediates.noindex/Musical.build/Debug-iphonesimulator/Musical.build/Objects-normal/arm64/AppDelegate.d)

I assume this is a problem with a simulator package of some sort, so how do I fix this.


Solution

  • Xcode sometimes has issues with cached derived files, which may become inconsistent. Seems to happen sometimes after switching a VCS (Git) branch, for example.

    Clean the derived files for your current project by using the menu Product > Clean Build Folder or the corresponding keyboard shortcut Cmd+Shift+K, then build again.