Skip to content

Commit

Permalink
fix: missing some kind of lib with AA-BB
Browse files Browse the repository at this point in the history
  • Loading branch information
dabing1022 committed Jan 19, 2021
1 parent 40ee28c commit 1614390
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def Utils.spec_module_dir(spec)
if spec.module_name.nil?
module_dir = "./Headers/Public/#{spec.name}"
module_dir = "./Pods/Headers/Public/#{spec.name}" unless File.exist?(module_dir)
unless File.exist?(module_dir)
# 一些库名称中使用了中划线如AAA-BBB,public header中库名称会默认处理成下划线AAA_BBB
module_name = spec.name.gsub("-", "_")
module_dir = "./Pods/Headers/Public/#{module_name}"
end
else
module_dir = "./Headers/Public/#{spec.module_name}"
module_dir = "./Pods/Headers/Public/#{spec.module_name}" unless File.exist?(module_dir)
Expand Down

0 comments on commit 1614390

Please sign in to comment.