Skip to content

Commit

Permalink
create correct output paths for localized resources
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Aug 8, 2021
1 parent 4238043 commit d9c930d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cocoapods/target/aggregate_target.rb
Expand Up @@ -312,7 +312,9 @@ def resource_paths_by_config
extname = File.extname(resource_path)
if self.class.resource_extension_compilable?(extname)
output_extname = self.class.output_extension_for_resource(extname)
built_product_dir.join(File.basename(resource_path)).sub_ext(output_extname).to_s
output_path_components = Pathname(resource_path).each_filename.select { |component| File.extname(component) == '.lproj' }
output_path_components << File.basename(resource_path)
built_product_dir.join(*output_path_components).sub_ext(output_extname).to_s
else
resource_path
end
Expand Down

0 comments on commit d9c930d

Please sign in to comment.