Skip to content

Commit 6c6b387

Browse files
committed
[GL][merge leavez#142]
1 parent 85aa760 commit 6c6b387

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/cocoapods-binary/Integration.rb

+10-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ def mirror_with_symlink(source, basefolder, target_folder)
8888
path_objects = hash[name]
8989
if path_objects != nil
9090
path_objects.each do |object|
91-
make_link(object.real_file_path, object.target_file_path)
91+
# make_link(object.real_file_path, object.target_file_path)
92+
# https://github.com/leavez/cocoapods-binary/pull/142
93+
target_file_path = object.target_file_path
94+
real_file_path = object.real_file_path
95+
case File.extname(real_file_path)
96+
when '.xib'
97+
real_file_path = real_file_path.sub_ext(".nib")
98+
target_file_path = target_file_path.sub(".xib", ".nib")
99+
end
100+
make_link(real_file_path, target_file_path)
92101
end
93102
end
94103
end # of for each

0 commit comments

Comments
 (0)