Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
218f502d
Commit
218f502d
authored
Oct 25, 2011
by
Nolan Waite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'Copy Pods Resources' build phase
parent
f319365d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
installer.rb
lib/cocoapods/installer.rb
+12
-0
project.rb
lib/cocoapods/xcode/project.rb
+5
-3
No files found.
lib/cocoapods/installer.rb
View file @
218f502d
...
@@ -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
...
...
lib/cocoapods/xcode/project.rb
View file @
218f502d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment