- File > Swift Packages > Add Package Dependency
- Add https://github.com/baraley/LocoScript.git
- Set
Dependency Rule
toBranch
and entermain
as the branch name - In Add to Target column, select None, if the option is available
-
Go to Edit Scheme: Click on LocoScript scheme and select Edit Scheme
-
Go to Run phase and select the Options tab. In Working Directory field, check Use custom working directory toggle and enter the path of root directory, the one where the script will perform in. Usually it's the root folder of the project
- Find the hidden .locoConfig file in the root folder of the Package and copy it to the folder selected on the previous step
- Open the .locoConfig file and set locoAPIKey and tags fields with your values. In tags dictionary key represents a tag name, and the value represents the destination folder where the strings should be saved to
*APIKey could be created here:
- Select your Mac as a Run Destination
- Run the script and wait until it print:
✅ Loco script did finish