lib/cocoapods-ppbuild/Prebuild.rb in cocoapods-ppbuild-0.0.3 vs lib/cocoapods-ppbuild/Prebuild.rb in cocoapods-ppbuild-0.0.4
- old
+ new
@@ -148,13 +148,13 @@
object.real_file_path = path.gsub('${PODS_ROOT}', existed_framework_folder.to_s) if path.start_with? '${PODS_ROOT}'
object.real_file_path = path.gsub("${PODS_CONFIGURATION_BUILD_DIR}", existed_framework_folder.to_s) if path.start_with? "${PODS_CONFIGURATION_BUILD_DIR}"
real_bundle_path = path.gsub('${PODS_ROOT}', sandbox_path.to_s) if path.start_with? '${PODS_ROOT}'
real_bundle_path = path.gsub('${PODS_CONFIGURATION_BUILD_DIR}', sandbox_path.to_s) if path.start_with? '${PODS_CONFIGURATION_BUILD_DIR}'
real_origin_path = Pathname.new(real_bundle_path)
+ real_file_path_obj = Pathname.new(object.real_file_path)
if real_origin_path.exist?
- temp_path = Pathname.new(object.real_file_path)
- temp_path.parent.mkpath unless temp_path.parent.exist?
- FileUtils.cp_r(real_origin_path, temp_path, :remove_destination => true)
+ real_file_path_obj.parent.mkpath unless real_file_path_obj.parent.exist?
+ FileUtils.cp_r(real_origin_path, real_file_path_obj, :remove_destination => true)
end
end
object.target_file_path = path.gsub('${PODS_ROOT}', standard_sandbox_path.to_s) if path.start_with? '${PODS_ROOT}'
object.target_file_path = path.gsub("${PODS_CONFIGURATION_BUILD_DIR}", standard_sandbox_path.to_s) if path.start_with? "${PODS_CONFIGURATION_BUILD_DIR}"
object
\ No newline at end of file