You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the issue is related to the getGroup method in the SourceGenerator class
privatefunc getGroup(path:Path, name:String?=nil, mergingChildren children:[PBXFileElement], createIntermediateGroups:Bool, isBaseGroup:Bool)->PBXGroup{letgroupReference:PBXGroup
if let cachedGroup =groupsByPath[path]{varcachedGroupChildren= cachedGroup.children
for child in children {
if !cachedGroupChildren.contains(where:{ $0.path == child.path && $0.sourceTree == child.sourceTree }){
cachedGroupChildren.append(child)}}...
the empty.json file is not correctly added to the group since it's skipped during the check for the cached value. For example for this setup the children array has 3 values:
It looks like regression introduced in XcodeGen 2.8.0, in 2.7.0 it doesn't happen. The result is similar to #70.
When all three conditions are fulfilled:
.lproj
folders (it doesn't matter what kind of:.json
,.strings
,.stringsdict
)createIntermediateGroups: true
inoptions
Then some of the localized resources get wrong paths and as the result go to "Recovered References"
Resulted
.xcodeproj
contains incorrectpath
:Sample project: xcodegen-localized.zip
When you remove
App/Resources/fonts
or comment outoptions
– the project is generated correctly.The text was updated successfully, but these errors were encountered: