Skip to content

Commit da8d019

Browse files
committed
Check top-level build directories as well as target-specific ones
1 parent b22bd94 commit da8d019

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def build_for_iosish_platform(sandbox,
4242
module_name = target.product_module_name
4343
device_framework_path = "#{build_dir}/#{CONFIGURATION}-#{device}/#{target_name}/#{module_name}.framework"
4444
simulator_framework_path = "#{build_dir}/#{CONFIGURATION}-#{simulator}/#{target_name}/#{module_name}.framework"
45+
if !device_framework_path.directory?
46+
# Newer Xcodes seem to build all in one directory.
47+
device_framework_path = "#{build_dir}/#{CONFIGURATION}-#{device}/#{module_name}.framework"
48+
simulator_framework_path = "#{build_dir}/#{CONFIGURATION}-#{simulator}/#{module_name}.framework"
49+
end
4550

4651
device_binary = device_framework_path + "/#{module_name}"
4752
simulator_binary = simulator_framework_path + "/#{module_name}"

0 commit comments

Comments
 (0)