Skip to content

Commit 8038a04

Browse files
committed
fix crash
1 parent 851aa85 commit 8038a04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/cocoapods-binary/Prebuild.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def prebuild_frameworks!
143143
object.target_file_path = path.gsub('${PODS_ROOT}', standard_sandbox_path.to_s)
144144
object
145145
end
146-
Prebuild::Passer.resources_to_copy_for_static_framework ||= {}
147146
Prebuild::Passer.resources_to_copy_for_static_framework[target.name] = path_objects
148147
end
149148
end
@@ -158,7 +157,6 @@ def prebuild_frameworks!
158157
# If target shouldn't build, we copy all the original files
159158
# This is for target with only .a and .h files
160159
if not target.should_build?
161-
Prebuild::Passer.target_names_to_skip_integration_framework ||= []
162160
Prebuild::Passer.target_names_to_skip_integration_framework << target.pod_name
163161
FileUtils.cp_r(root_path, target_folder, :remove_destination => true)
164162
next

lib/cocoapods-binary/helper/passer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ class ResourcePath
2626
#
2727
# @return [Hash<String, [Passer::ResourcePath]>]
2828
class_attr_accessor :resources_to_copy_for_static_framework
29+
resources_to_copy_for_static_framework = {}
2930

3031
# Some pod won't be build in prebuild stage even if it have `binary=>true`.
3132
# The targets of this pods have `should_build? == true`.
3233
# We should skip integration (patch spec) for this pods
3334
#
3435
# @return [Array<String>]
3536
class_attr_accessor :target_names_to_skip_integration_framework
37+
target_names_to_skip_integration_framework = []
3638

3739
end
3840
end

0 commit comments

Comments
 (0)