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
89beeeff
Commit
89beeeff
authored
Aug 16, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetIntegrator] Add constant EMBED_FRAMEWORK_PHASE_NAME
parent
b8f6bd87
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
target_integrator.rb
...ds/installer/user_project_integrator/target_integrator.rb
+6
-3
No files found.
lib/cocoapods/installer/user_project_integrator/target_integrator.rb
View file @
89beeeff
...
...
@@ -14,6 +14,10 @@ module Pod
#
EMBED_FRAMEWORK_TARGET_TYPES
=
[
:application
,
:unit_test_bundle
].
freeze
# @return [String] the name of the embed frameworks phase
#
EMBED_FRAMEWORK_PHASE_NAME
=
'Embed Pods Frameworks'
.
freeze
# @return [AggregateTarget] the target that should be integrated.
#
attr_reader
:target
...
...
@@ -146,7 +150,7 @@ module Pod
EMBED_FRAMEWORK_TARGET_TYPES
.
include?
(
target
.
symbol_type
)
end
targets_to_embed_in
.
each
do
|
native_target
|
phase
=
create_or_update_build_phase
(
native_target
,
'Embed Pods Frameworks'
)
phase
=
create_or_update_build_phase
(
native_target
,
EMBED_FRAMEWORK_PHASE_NAME
)
script_path
=
target
.
embed_frameworks_script_relative_path
phase
.
shell_script
=
%("#{script_path}"\n)
end
...
...
@@ -161,11 +165,10 @@ module Pod
def
remove_embed_frameworks_script_phases
return
false
if
target
.
requires_frameworks?
phase_name
=
'Embed Pods Frameworks'
result
=
false
native_targets
.
each
do
|
native_target
|
embed_build_phase
=
native_target
.
shell_script_build_phases
.
find
{
|
bp
|
bp
.
name
==
phase_name
}
embed_build_phase
=
native_target
.
shell_script_build_phases
.
find
{
|
bp
|
bp
.
name
==
EMBED_FRAMEWORK_PHASE_NAME
}
next
unless
embed_build_phase
.
present?
native_target
.
build_phases
.
delete
(
embed_build_phase
)
result
=
true
...
...
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