Commit 17275eb8 authored by Nolan Waite's avatar Nolan Waite

Move shell script creation out of installer

parent fcbef0fc
......@@ -219,14 +219,8 @@ module Pod
build_phase.files << libfile.buildFiles.new
end
copy_resources = app_project.objects.add(Xcode::Project::PBXShellScriptBuildPhase, {
'name' => 'Copy Pods Resources',
'files' => [],
'inputPaths' => [],
'outputPaths' => [],
'shellPath' => '/bin/sh',
'shellScript' => "${SRCROOT}/Pods/Pods-resources.sh\n"
})
copy_resources = app_project.add_shell_script_build_phase('Copy Pods Resources',
"${SRCROOT}/Pods/Pods-resources.sh\n")
app_project.targets.each { |target| target.buildPhases << copy_resources }
app_project.save_as(projpath)
......
......@@ -626,6 +626,17 @@ module Pod
'sourceTree' => 'SDKROOT'
})
end
def add_shell_script_build_phase(name, script_path)
objects.add(Xcode::Project::PBXShellScriptBuildPhase, {
'name' => name,
'files' => [],
'inputPaths' => [],
'outputPaths' => [],
'shellPath' => '/bin/sh',
'shellScript' => script_path
})
end
def build_files
objects.select_by_class(PBXBuildFile)
......
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