Skip to content

Commit 01430ed

Browse files
committed
fix pod_name_for_target_folder
1 parent 99f90d8 commit 01430ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cocoapods-binary/helper/prebuild_sandbox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def save_pod_name_for_target(target)
5050
private
5151

5252
def pod_name_for_target_folder(target_folder_path)
53-
name = Pathname.new(target_folder_path).children.first do |child|
53+
name = Pathname.new(target_folder_path).children.find do |child|
5454
child.to_s.end_with? ".pod_name"
5555
end.basename(".pod_name").to_s
5656
name ||= Pathname.new(target_folder_path).basename.to_s # for compatibility with older version

0 commit comments

Comments
 (0)