Skip to content

Commit 4cba284

Browse files
committed
fix: #5 & #8, There is no need to add headers of dynamic framework to hmap.
1 parent 1c4a768 commit 4cba284

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/cocoapods_plugin.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ module ProjectHeaderMap
1717
Pod::UI.message "- hanlding headers of aggregate target :#{one.name}".green
1818
one.pod_targets.each do |target|
1919
Pod::UI.message "- hanlding headers of target :#{target.name}"
20-
pods_hmap.add_hmap_with_header_mapping(target.public_header_mappings_by_file_accessor, generate_type, target.name, target.product_module_name)
20+
# There is no need to add headers of dynamic framework to hmap.
21+
unless target.defines_module? && target.requires_frameworks?
22+
pods_hmap.add_hmap_with_header_mapping(target.public_header_mappings_by_file_accessor, generate_type, target.name, target.product_module_name)
23+
else
24+
Pod::UI.message "- skip dynamic framework: #{target.name}"
25+
end
26+
2127
unless $hmap_black_pod_list.include?(target.name) || $prebuilt_hmap_for_pod_targets == false
2228
target_hmap = HmapGenerator.new
2329
# set project header for current target

0 commit comments

Comments
 (0)