lib/cocoapods-jxedt/binary/Intergation.rb in cocoapods-jxedt-0.0.16 vs lib/cocoapods-jxedt/binary/Intergation.rb in cocoapods-jxedt-0.0.17
- old
+ new
@@ -138,9 +138,15 @@
specs = self.analysis_result.specifications
prebuilt_specs = (specs.select do |spec|
# rmtree
target_prebuild_files = self.sandbox.pod_dir(spec.name) + "_Prebuild"
target_prebuild_files.rmtree if target_prebuild_files.exist?
+
+ # 切换到local pod时,清除一下pod所在目录下的_Prebuild文件夹
+ if self.sandbox.local?(spec.root.name)
+ source_target_prebuild_files = self.sandbox.sources_root + spec.root.name + "_Prebuild"
+ source_target_prebuild_files.rmtree if source_target_prebuild_files.exist?
+ end
self.prebuild_pod_names.include? spec.root.name
end)
checked_specs = {}