Skip to content

Commit 1ac05cd

Browse files
Merge branch 'chris.thuyen/fix/static_fw_with_xib' into 'master'
fix(*): static framework with xib files See merge request mobile/dax-ios/cocoapods-binary-cache!12
2 parents 1bc2b9c + 1190f30 commit 1ac05cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/cocoapods-binary-cache/pod-binary/Integration.rb

+7
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ def mirror_with_symlink(source, basefolder, target_folder)
101101
path_objects = hash[name]
102102
if path_objects != nil
103103
path_objects.each do |object|
104+
# https://github.com/grab/cocoapods-binary-cache/issues/7
105+
# When ".xib" files are copied to a framework, it sometimes becomes ".nib" files
106+
# --> We need to correct the path extension
107+
if !object.real_file_path.exist? && object.real_file_path.extname == '.xib'
108+
object.real_file_path = object.real_file_path.sub_ext('.nib')
109+
object.target_file_path = Pathname(object.target_file_path).sub_ext('.nib').to_path
110+
end
104111
make_link(object.real_file_path, object.target_file_path)
105112
end
106113
end

0 commit comments

Comments
 (0)