lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb in cocoapods-jxedt-0.0.19 vs lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb in cocoapods-jxedt-0.0.20
- old
+ new
@@ -32,9 +32,21 @@
cache_analysis_result.build_configurations, cache_analysis_result.project_object_version)
# 恢复sandbox标识
sandbox.index_project_create_stage = false
end
+
+ def resolve_dependencies
+ analyzer = super
+ self.analysis_result.specifications.each do |spec|
+ # keep all file in pods
+ preserve_paths = spec.attributes_hash["preserve_paths"] || []
+ preserve_paths = [preserve_paths] if preserve_paths.kind_of?(String)
+ preserve_paths += ['_Prebuild']
+ spec.attributes_hash["preserve_paths"] = preserve_paths
+ end
+ analyzer
+ end
end
end
module Pod
class Installer
\ No newline at end of file