Open keith opened 6 years ago
It looks like this is because we hit this branch https://github.com/yonaskolb/XcodeGen/blob/461de39f8e7c837a78f5617bc4fc20d4d84267b7/Sources/XcodeGenKit/SourceGenerator.swift#L470 which doesn't have any of the lproj logic
With this project spec:
And this folder structure:
When I run XcodeGen like this:
I end up with a project where the Localizable.strings file isn't correctly setup as a localized file. In this case it looks like this:
If you change the source path to be
Resources/Strings
instead ofResources/Strings/Base.lproj/Localizable.strings
this issue is fixed and it looks like this:But sometimes having the complete path to the file is useful so you don't include resources that shouldn't be a part of your target.
Here's the sample project showing this issue: XcodeGenLocalizable.zip
This was tested with
b918a1e76b4b98883de2a8ba99a5dbce435764f8