Skip to content

Commit aab3a15

Browse files
committed
[profdata] Fix binary file detection for MacOS apps
1 parent 57c8850 commit aab3a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/slather/project.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def binary_file
140140

141141
def binary_file_for_app(app_bundle_file)
142142
app_bundle_file_name_noext = Pathname.new(app_bundle_file).basename.to_s.gsub(".app", "")
143-
"#{app_bundle_file}/#{app_bundle_file_name_noext}"
143+
Dir["#{app_bundle_file}/**/#{app_bundle_file_name_noext}"].first
144144
end
145145

146146
def binary_file_for_dynamic_lib(framework_bundle_file)

0 commit comments

Comments
 (0)