Reputation: 41
I'm trying to integrate SwiftGen Plugin using SPM within a project that has multiple packages for localization. So I picked the package where I need SwiftGen and did the following:
input_dir: Sources/Example/Resources
output_dir: Sources/Example/Generated
strings:
inputs:
- en.lproj
outputs:
- templateName: structured-swift5
output: Strings.generated.swift
What am I doing wrong?
I tried to change the output folder but nothing, same thing.. I can't find any resource on the web regarding on how to integrate SwiftGen for localization within an existing SPM package.
Upvotes: 1
Views: 1099
Reputation: 41
You should use it as command
swift package --allow-writing-to-package-directory generate-code-for-resources
Upvotes: 1