malcommac / SwiftDate

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

Build Error: Invalid Resource Glob Sources/SwiftDate/Formatters/RelativeFormatter/langs/** #822

Open philipbel opened 10 months ago

philipbel commented 10 months ago

When using SwiftDate from Tuist, getting the following error (with 7.0.0):

The target SwiftDate has the following invalid resource globs:
- The directory "/APP/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/SwiftDate/Sources/SwiftDate/Formatters/RelativeFormatter/langs" defined in the glob pattern "/APP/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/SwiftDate/Sources/SwiftDate/Formatters/RelativeFormatter/langs/**" does not exist.
- The directory "/APP/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/SwiftDate/Sources/SwiftDate/Resources" defined in the glob pattern "/APP/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/SwiftDate/Sources/SwiftDate/Resources/**" does not exist.

Not sure whether the error is limited to Tuist, as I see that dxmvsh/SwiftDate has also encountered the issue and has fixed it in 3a0a2c3.

I can confirm that this resolves the build error in Tuist.

Liyongcong commented 2 months ago

That happened to me, too. How did you fix it