Commit 218f502d authored by Nolan Waite's avatar Nolan Waite

Add 'Copy Pods Resources' build phase

parent f319365d
...@@ -135,6 +135,18 @@ module Pod ...@@ -135,6 +135,18 @@ module Pod
end end
app_project.main_group << libfile app_project.main_group << libfile
copy_resources = app_project.objects.add(Xcode::Project::PBXShellScriptBuildPhase, {
'name' => 'Copy Pods Resources',
'buildActionMask' => '2147483647',
'files' => [],
'inputPaths' => [],
'outputPaths' => [],
'runOnlyForDeploymentPostprocessing' => '0',
'shellPath' => '/bin/sh',
'shellScript' => "${SRCROOT}/Pods/PodsResources.sh\n"
})
app_project.targets.each { |target| target.buildPhases << copy_resources }
app_project.save_as(projpath) app_project.save_as(projpath)
end end
end end
......
...@@ -144,9 +144,11 @@ module Pod ...@@ -144,9 +144,11 @@ module Pod
list_by_class(file_uuids, PBXBuildFile) list_by_class(file_uuids, PBXBuildFile)
end end
end end
class PBXSourcesBuildPhase < PBXBuildPhase; end
class PBXCopyFilesBuildPhase < PBXBuildPhase; end class PBXSourcesBuildPhase < PBXBuildPhase; end
class PBXFrameworksBuildPhase < PBXBuildPhase; end class PBXCopyFilesBuildPhase < PBXBuildPhase; end
class PBXFrameworksBuildPhase < PBXBuildPhase; end
class PBXShellScriptBuildPhase < PBXBuildPhase; end
class PBXNativeTarget < PBXObject class PBXNativeTarget < PBXObject
attributes_accessor :buildPhases, :buildConfigurationList attributes_accessor :buildPhases, :buildConfigurationList
......
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