malcommac / SwiftDate

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

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

Open philipbel opened 8 months ago

philipbel commented 8 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 6 days ago

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