Skip to content

Commit 50e3a5b

Browse files
committed
add framework_existed? in prebuild_sandbox.rb
1 parent d0ed1ec commit 50e3a5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/cocoapods-binary/helper/prebuild_sandbox.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,12 @@ def exsited_framework_names
3838
end.reject(&:nil?)
3939
end
4040

41+
def framework_existed?(root_name)
42+
return false unless generate_framework_path.exist?
43+
generate_framework_path.children().any? do |child|
44+
child.basename.to_s == root_name
45+
end
46+
end
47+
4148
end
4249
end

0 commit comments

Comments
 (0)