Skip to content

Commit

Permalink
Merge branch 'chris.thuyen/fix/static_fw_with_xib' into 'master'
Browse files Browse the repository at this point in the history
fix(*): static framework with xib files

See merge request mobile/dax-ios/cocoapods-binary-cache!12
  • Loading branch information
christhuyenatgrab committed Apr 17, 2020
2 parents 1bc2b9c + 1190f30 commit 1ac05cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/cocoapods-binary-cache/pod-binary/Integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def mirror_with_symlink(source, basefolder, target_folder)
path_objects = hash[name]
if path_objects != nil
path_objects.each do |object|
# https://github.com/grab/cocoapods-binary-cache/issues/7
# When ".xib" files are copied to a framework, it sometimes becomes ".nib" files
# --> We need to correct the path extension
if !object.real_file_path.exist? && object.real_file_path.extname == '.xib'
object.real_file_path = object.real_file_path.sub_ext('.nib')
object.target_file_path = Pathname(object.target_file_path).sub_ext('.nib').to_path
end
make_link(object.real_file_path, object.target_file_path)
end
end
Expand Down

0 comments on commit 1ac05cd

Please sign in to comment.