From 26b9e97cd7167d0837c6b64f08eaaea560c33171 Mon Sep 17 00:00:00 2001 From: mickamy Date: Sat, 6 Feb 2021 00:13:04 +0900 Subject: [PATCH] Fix path to compiled xib file --- lib/cocoapods-binary/Integration.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/cocoapods-binary/Integration.rb b/lib/cocoapods-binary/Integration.rb index 8ef76e1..2a0ebf7 100644 --- a/lib/cocoapods-binary/Integration.rb +++ b/lib/cocoapods-binary/Integration.rb @@ -88,7 +88,16 @@ def mirror_with_symlink(source, basefolder, target_folder) path_objects = hash[name] if path_objects != nil path_objects.each do |object| - make_link(object.real_file_path, object.target_file_path) + target_file_path = object.target_file_path + real_file_path = object.real_file_path + + case File.extname(real_file_path) + when '.xib' + real_file_path = real_file_path.sub_ext(".nib") + target_file_path = target_file_path.sub(".xib", ".nib") + end + + make_link(real_file_path, target_file_path) end end end # of for each