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
c1f1a41c
Commit
c1f1a41c
authored
Oct 05, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Set deployment target to maximum spec deployment target
parent
a8f8d7f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+6
-1
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+9
-0
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
c1f1a41c
...
...
@@ -39,7 +39,6 @@ module Pod
product_type
=
target
.
product_type
name
=
target
.
label
platform
=
target
.
platform
.
name
deployment_target
=
target
.
platform
.
deployment_target
.
to_s
language
=
target
.
uses_swift?
?
:
swift
:
:objc
@native_target
=
project
.
new_target
(
product_type
,
name
,
platform
,
deployment_target
,
nil
,
language
)
...
...
@@ -59,6 +58,12 @@ module Pod
target
.
native_target
=
@native_target
end
# @return [String] The deployment target.
#
def
deployment_target
target
.
platform
.
deployment_target
.
to_s
end
# Returns the customized build settings which are overridden in the build
# settings of the user target.
#
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
c1f1a41c
...
...
@@ -310,6 +310,15 @@ module Pod
end
end
# The deployment target for the pod target, which is the maximum of all
# the deployment targets for the current platform of the target.
#
# @return [String] The deployment target.
#
def
deployment_target
target
.
specs
.
map
{
|
spec
|
spec
.
deployment_target
(
target
.
platform
)
}.
max
end
#-----------------------------------------------------------------------#
end
end
...
...
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