Skip to content

Commit 62af283

Browse files
committed
fix pod_name_for_target_folder
1 parent 971381a commit 62af283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cocoapods-binary/helper/prebuild_sandbox.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def save_pod_name_for_target(target)
5353
def pod_name_for_target_folder(target_folder_path)
5454
name = Pathname.new(target_folder_path).children.find do |child|
5555
child.to_s.end_with? ".pod_name"
56-
end.basename(".pod_name").to_s
56+
end
57+
name = name.basename(".pod_name").to_s unless name.nil?
5758
name ||= Pathname.new(target_folder_path).basename.to_s # for compatibility with older version
5859
end
5960

0 commit comments

Comments
 (0)