Closed mornin-ystIUBqR closed 1 year ago
@mornin-sculpture Thanks for reporting the issue! I could reproduce the issue by setting up according to Package.swift
you provided. I didn't imagine that this plugin is used from executable target, but that usage is completely valid.
I'll fix the issue and create a new release soon.
📝
I came up with three options to solve this issue.
cp
command.cp
command.cp
command. Replace try context.tool(named: "cp").path
with Path("/bin/cp")
.I tried 1 in #19 , it seemed that it worked well but there were some problem ref: #20 . And 2 and 3 seems solutions that far from ideal... 2 is too complicated and 3 can be not reliable.
Currently, my project is configured with the following Package.swift.
When I try to use SomeBinary in a swift build, the following error occurs.
It seems that the location of the cp command has not been discovered.
This does not affect the execution of SomeBinary.