From 4f846474f5d651be8b66b369d03a736d62f48924 Mon Sep 17 00:00:00 2001 From: leavez Date: Thu, 3 May 2018 23:20:45 +0800 Subject: [PATCH] fix #20 --- lib/cocoapods-binary/Integration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cocoapods-binary/Integration.rb b/lib/cocoapods-binary/Integration.rb index 8208895..2d31fc5 100644 --- a/lib/cocoapods-binary/Integration.rb +++ b/lib/cocoapods-binary/Integration.rb @@ -154,9 +154,10 @@ def remove_target_files_if_needed prebuilt_specs.each do |spec| # `spec` may be a subspec, so we use the root's name root_name = spec.root.name + target = name_to_target_hash[root_name] + next unless target.should_build? # use the prebuilt framework - target = name_to_target_hash[root_name] original_vendored_frameworks = spec.attributes_hash["vendored_frameworks"] || [] if original_vendored_frameworks.kind_of?(String) original_vendored_frameworks = [original_vendored_frameworks]