Skip to content

Commit 4f84647

Browse files
committed
fix #20
1 parent e971032 commit 4f84647

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cocoapods-binary/Integration.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,10 @@ def remove_target_files_if_needed
154154
prebuilt_specs.each do |spec|
155155
# `spec` may be a subspec, so we use the root's name
156156
root_name = spec.root.name
157+
target = name_to_target_hash[root_name]
158+
next unless target.should_build?
157159

158160
# use the prebuilt framework
159-
target = name_to_target_hash[root_name]
160161
original_vendored_frameworks = spec.attributes_hash["vendored_frameworks"] || []
161162
if original_vendored_frameworks.kind_of?(String)
162163
original_vendored_frameworks = [original_vendored_frameworks]

0 commit comments

Comments
 (0)