Hi! I'm trying to build a Swift Build Tool Plugin that works both with Swift Packages and Xcode, the general idea is that it will get as input some JavaScript files and validate, mangle and merge them in a unified output file. This all works well, but I need to make sure the input files are not added to the final product. Is this possible to do in with the plugin?
My idea was to replace an existing Custom Build Script with this plugin but I don't see a way to do this only with the plugin currently.
Hi, I'm pretty new to plugins, but I think I just did something similar as a test.
I have a folder with a bunch of files that is excluded in the package that is then used by a plugin to create a single code file. None of the .txt files go into the build.
I followed along with WWDC 2022 Create Swift Package plugins, but I also recommend doing a search for " func createBuildCommands(" and other plugin related commands on github to see what other folks are doing.
I'm still not sure I'm clear on the layout of your project and what folders do and do not need changing, but in general if the Source folder of the Target is going to be changed, use a command plugin instead of a build plugin unless you are in a position to turn off the sandbox.