Installing Sourcery using the SPM

I want to add a Sourcery to my project and I use the official documentation for this: https://krzysztofzablocki.github.io/Sourcery/installing.html

I need the option via the SPM. I downloaded and did swift build -c release. Then, according to the instructions, I copy .build/release to the root of my project (correct?) and call the path_to_release_folder/sourcery (I'm setting my path) - from this stage I encounter problems, for example: the terminal says that it does not see the sourcery, although it is there and I have access to it, etc.

Has anyone installed the Sourcery via the SPM, can you give me some advice, please?


Ответы (1 шт):

Автор решения: Соня Кудрявцева

From the documentation:

Move the whole .build/release folder to your desired destination and run with path_to_release_folder/sourcery

most likely the problem was in the incorrect movement of files and we will do everything carefully through the terminal, everything worked out for me

→ Ссылка