For anyone still facing this problem, the workaround I've been using is to define Bundle.module when compiling from Xcode.
import Foundation
// MARK: - BundleFinder
// when compiled from xcodeproj, this code is necessary for bundling resources
// but when compiling as a swift package, these cause compilation errors: "redefinition of `module`".
// The XCODE_COMPILE pre-processor flag is set in the xcodeproj settings and is only present
// when the code is compiled from Xcode (or xcodebuild)
#if XCODE_COMPILE
private class BundleFinder {}
extension Bundle {
static var module = Bundle(for: BundleFinder.self)
}
#endif
Creating a flag XCODE_COMPILE in the Active Compilation Conditions (for release and debug) for your xcodeproj build settings allows your project to compile when using Xcode/xcodebuild while at the same time not breaking your swift package w/ a redefinition of Bundle.module.