I can not help with Copy Files Phase .
However, I just played with conditional compilation, for example:
swift package generate-xcodeproj --xcconfig-overrides Sandbox.xcconfig
Sandbox.xcconfig
FLAG_SANDBOX = -DSANDBOX OTHER_SWIFT_FLAGS = $(FLAG_SANDBOX)
This creates an Xcode project in which SANDBOX is under control.
It can be used in fast code like this
#if SANDBOX print("sandbox") #else print("production") #endif
source share