error reading dependency file Xcode 12 beta 4

App compiles and runs fine on device and simulator.
The app uses a Swift Package name 'TreasureMaps'

I get 45 errors only when building Archive, but the archive is then presented in the Organizer window. However, the organizer does not show options to upload to iTunes Store.

I don't see anything obvious at the file locations indicated.

Here's the error:
error: error reading dependency file '/Users/tguion/Library/Developer/Xcode/DerivedData/TreasureMapsWY-ayimlaxbqafjfmdvveldtoqbnstj/Build/Intermediates.noindex/ArchiveIntermediates/TreasureMapsWY/IntermediateBuildFilesPath/TreasureMaps.build/Release-iphoneos/TreasureMaps.build/Objects-normal/arm64/TreasureMaps-master.d': unexpected character in prerequisites at position 1226229 (in target 'TreasureMaps' from project 'TreasureMaps')



Did you resolve this? I have same issue.

I am having this issue too. I have narrowed it down to the colon (which is prohibited in build files). Looks to be related to the local file reference to the SwiftPackage although I wouldn't expect that you have to remove it before archiving.
It also appears to be happening only when using Swift 5.3, Swift 5.2 compiles it fine. For reference I am trying both in Xcode 12.0.1.
I had the same issue and managed to fix it after finding out more about what's causing the issue here: https://github.com/AudioKit/AudioKit/issues/2279#issuecomment-705285458

TLDR

For completeness, the issues were that some file names were colliding with each other.

In my case it was because of a Core Data model file. If that's the problem in your case too then read my answer from here: https://developer.apple.com/forums/thread/657896?answerId=639959022#639959022
error reading dependency file Xcode 12 beta 4
 
 
Q