We have CLI tool written in Swift for common usage (Android and iOS developers) on macOS. Android developers without Xcode installation get the following error:
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: ~/git/myClITool/macosBin Reason: image not found Abort trap: 6
We found that enabling
Always Embed Swift Standard Libraries in Xcode would most likely help, but this CLI tool is exported with SPM, ignoring all Xcode settings.
How can I achieve this build behaviour using SPM only?