Commit 1610e670 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[PodTargetInstaller] Use native Pathname methods

parent 053e9590
...@@ -190,8 +190,7 @@ module Pod ...@@ -190,8 +190,7 @@ module Pod
# @return [void] # @return [void]
# #
def link_module_map def link_module_map
module_map_path_name = Pathname.new(target.module_map_path) sandbox.public_headers.add_file(target.name, target.module_map_path, "module.modulemap", target.platform)
sandbox.public_headers.add_file(target.name, module_map_path_name, "module.modulemap", target.platform)
end end
# Links a an umbrella header to Public headers. # Links a an umbrella header to Public headers.
...@@ -201,8 +200,7 @@ module Pod ...@@ -201,8 +200,7 @@ module Pod
def link_umbrella_header def link_umbrella_header
return if custom_module_map return if custom_module_map
umbrella_header_path_name = Pathname.new(target.umbrella_header_path) sandbox.public_headers.add_files(target.name, [target.umbrella_header_path], target.platform)
sandbox.public_headers.add_files(target.name, [umbrella_header_path_name], target.platform)
end end
# Creates a prefix header file which imports `UIKit` or `Cocoa` according # Creates a prefix header file which imports `UIKit` or `Cocoa` according
...@@ -303,11 +301,9 @@ module Pod ...@@ -303,11 +301,9 @@ module Pod
add_file_to_support_group(path) add_file_to_support_group(path)
unless target.requires_frameworks? unless target.requires_frameworks?
File.open(path) do |source_file| contents = path.read
contents = source_file.read contents.gsub!(/^\s*framework\s+module/, 'module')
contents.gsub!(/^\s*framework\s+module/, 'module') path.open('w') { |f| f.write(contents) }
File.open(path, "w") { |f| f.write(contents) }
end
end end
native_target.build_configurations.each do |c| native_target.build_configurations.each do |c|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment