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
15553910
Commit
15553910
authored
Sep 10, 2015
by
Marius Rackwitz
Committed by
Samuel Giddins
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetIntegrator] Merge into existing migration path
parent
a8eca8bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
target_integrator.rb
...ds/installer/user_project_integrator/target_integrator.rb
+4
-11
No files found.
lib/cocoapods/installer/user_project_integrator/target_integrator.rb
View file @
15553910
...
@@ -44,7 +44,6 @@ module Pod
...
@@ -44,7 +44,6 @@ module Pod
update_to_cocoapods_0_34
,
update_to_cocoapods_0_34
,
update_to_cocoapods_0_37_1
,
update_to_cocoapods_0_37_1
,
update_to_cocoapods_0_39
,
update_to_cocoapods_0_39
,
update_to_cocoapods_0_40
,
unless
native_targets_to_integrate
.
empty?
unless
native_targets_to_integrate
.
empty?
add_pods_library
add_pods_library
add_embed_frameworks_script_phase
add_embed_frameworks_script_phase
...
@@ -133,19 +132,10 @@ module Pod
...
@@ -133,19 +132,10 @@ module Pod
end
end
if
requires_update
if
requires_update
add_embed_frameworks_script_phase
add_embed_frameworks_script_phase
true
end
end
end
# Reset the linking of the product reference to strong.
#
# @return [Bool] whether any changes to the project were made.
#
# @todo This can be removed for CocoaPods 1.0
#
def
update_to_cocoapods_0_40
frameworks
=
user_project
.
frameworks_group
frameworks
=
user_project
.
frameworks_group
native_targets_to_embed_in
.
any?
do
|
native_target
|
native_targets_to_embed_in
.
each
do
|
native_target
|
build_phase
=
native_target
.
frameworks_build_phase
build_phase
=
native_target
.
frameworks_build_phase
product_ref
=
frameworks
.
files
.
find
{
|
f
|
f
.
path
==
target
.
product_name
}
product_ref
=
frameworks
.
files
.
find
{
|
f
|
f
.
path
==
target
.
product_name
}
...
@@ -156,9 +146,12 @@ module Pod
...
@@ -156,9 +146,12 @@ module Pod
&&
build_file
.
settings
[
'ATTRIBUTES'
].
is_a?
(
Array
)
\
&&
build_file
.
settings
[
'ATTRIBUTES'
].
is_a?
(
Array
)
\
&&
build_file
.
settings
[
'ATTRIBUTES'
].
include?
(
'Weak'
)
&&
build_file
.
settings
[
'ATTRIBUTES'
].
include?
(
'Weak'
)
build_file
.
settings
=
nil
build_file
.
settings
=
nil
requires_update
=
true
end
end
end
end
end
end
requires_update
end
end
# Adds spec product reference to the frameworks build phase of the
# Adds spec product reference to the frameworks build phase of the
...
...
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