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
17275eb8
Commit
17275eb8
authored
Nov 06, 2011
by
Nolan Waite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move shell script creation out of installer
parent
fcbef0fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
installer.rb
lib/cocoapods/installer.rb
+2
-8
project.rb
lib/cocoapods/xcode/project.rb
+11
-0
No files found.
lib/cocoapods/installer.rb
View file @
17275eb8
...
@@ -219,14 +219,8 @@ module Pod
...
@@ -219,14 +219,8 @@ module Pod
build_phase
.
files
<<
libfile
.
buildFiles
.
new
build_phase
.
files
<<
libfile
.
buildFiles
.
new
end
end
copy_resources
=
app_project
.
objects
.
add
(
Xcode
::
Project
::
PBXShellScriptBuildPhase
,
{
copy_resources
=
app_project
.
add_shell_script_build_phase
(
'Copy Pods Resources'
,
'name'
=>
'Copy Pods Resources'
,
"${SRCROOT}/Pods/Pods-resources.sh
\n
"
)
'files'
=>
[],
'inputPaths'
=>
[],
'outputPaths'
=>
[],
'shellPath'
=>
'/bin/sh'
,
'shellScript'
=>
"${SRCROOT}/Pods/Pods-resources.sh
\n
"
})
app_project
.
targets
.
each
{
|
target
|
target
.
buildPhases
<<
copy_resources
}
app_project
.
targets
.
each
{
|
target
|
target
.
buildPhases
<<
copy_resources
}
app_project
.
save_as
(
projpath
)
app_project
.
save_as
(
projpath
)
...
...
lib/cocoapods/xcode/project.rb
View file @
17275eb8
...
@@ -626,6 +626,17 @@ module Pod
...
@@ -626,6 +626,17 @@ module Pod
'sourceTree'
=>
'SDKROOT'
'sourceTree'
=>
'SDKROOT'
})
})
end
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
def
build_files
objects
.
select_by_class
(
PBXBuildFile
)
objects
.
select_by_class
(
PBXBuildFile
)
...
...
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