Resources Behind Symlink

Package resources cannot be found if the executable is launched through a symlink.

[module]/resource_bundle_accessor.swift:11: Fatal error: could not load resource bundle: from [symlink/../][package]_[module].bundle or [buildtime package path]/.build/x86_64-apple-macosx/release/[package]_[module].bundle

Is this a bug in SwiftPM, or a bug in Foundation (since Bundle.main is reporting an erroneous path).

1 Like

the issue persists to this day