Open
Description
With this project spec:
{
"name": "Test",
"options": {
"createIntermediateGroups": true
},
"targets": {
"ResourceBundle": {
"platform": "iOS",
"sources": [
"Resources/Strings/Base.lproj/Localizable.strings"
],
"type": "bundle"
}
}
}
And this folder structure:
.
├── Resources
│ └── Strings
│ └── Base.lproj
│ └── Localizable.strings
└── project.json
When I run XcodeGen like this:
~/dev/XcodeGen/.build/debug/xcodegen --spec project.json
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 of Resources/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