Search code examples
iosswiftswiftuiarchivexcode15

error reading dependency file '': unexpected character in prerequisites


I am archiving my project and getting error.

The exact error I am getting is:

error reading dependency file '/Users/qaziammararshad/Library/Developer/Xcode/DerivedData/PlayDate-ezhxlfmvmujfscbpjogpkbmuvmwl/Build/Intermediates.noindex/ArchiveIntermediates/PlayDate/IntermediateBuildFilesPath/PlayDate.build/Release-iphoneos/PlayDate.build/Objects-normal/arm64/PlayDate-master.d': unexpected character in prerequisites

The solutions I tried:

  • Clean Build
  • Delete Derive Data

These solutions did not work in my case.

This is the image for it:

error image


Solution

  • You can try to clear the issue by checking all of your files for a colon in the file name. If I am right, the master has all files' names in a text and one of the files has the colon in there which is causing the problem.

    DIdn't Have To Clean Derived Data. You Can Check Here As Well: Solution