malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

Xcode workspace integrity issue related to `langs` #791

Closed aburgel closed 2 years ago

aburgel commented 2 years ago

I recently noticed the following error in xcode. It doesn't seem to cause any breakage, my app builds, runs and tests without issue.

Screen Shot 2022-01-18 at 3 14 44 PM

I think it's related to SwiftDate because I also see this error in my fastlane builds.

2022-01-18 18:33:53.756 xcodebuild[25156:62068] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x7fd8b5a0bda0: name:langs path:absolute:/Users/runner/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/SwiftDate/Sources/SwiftDate/Formatters/RelativeFormatter/langs> Failed to load container at path: /Users/runner/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/SwiftDate/Sources/SwiftDate/Formatters/RelativeFormatter/langs, Error: Error Domain=com.apple.dt.IDEContainerErrorDomain Code=6 "Cannot open "langs" as a "Folder" because it is already open as a "Swift Package Folder"." UserInfo={NSLocalizedDescription=Cannot open "langs" as a "Folder" because it is already open as a "Swift Package Folder".}

langs is referenced in Package.swift, but I'm not sure whether that's related or why it's causing this issue.

I'm using Xcode 13.2.1.

andriyslyusar commented 2 years ago

I have the same issue using Xcode 13.2.1 and the same fastlane output.

ksandiego commented 2 years ago

I'm currently facing the same issue as well. It seems to only appear during tests; however, the app builds and tests fine.

GeorgeSealy commented 2 years ago

Also getting the same issues, and it's causing CI builds to fail. Is anyone else seeing / monitoring this issue? https://forums.swift.org/t/xcode-and-swift-package-manager/44704/5 mentions possible work arounds, but they don't seem to work in this case.

malcommac commented 2 years ago

fixed in 7.0.0