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
2480a10a
Commit
2480a10a
authored
Nov 08, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto opt-in OSX targets and iOS targets which have a deployment target >= 8.0
parent
7382c13e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+6
-3
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
2480a10a
...
...
@@ -204,7 +204,7 @@ module Pod
user_project
=
Xcodeproj
::
Project
.
open
(
project_path
)
native_targets
=
compute_user_project_targets
(
target_definition
,
user_project
)
target
.
host_requires_framework
|=
compute_user_project_targets_require_framework
(
native_targets
)
target
.
host_requires_framework
|=
compute_user_project_targets_require_framework
(
target_definition
,
native_targets
)
target
.
user_project_path
=
project_path
target
.
client_root
=
project_path
.
dirname
target
.
user_target_uuids
=
native_targets
.
map
(
&
:uuid
)
...
...
@@ -568,14 +568,17 @@ module Pod
# by #compute_user_project_targets require to be build as a framework due
# the presence of Swift source code in any of the source build phases.
#
# @param [TargetDefinition] target_definition
# the target definition
#
# @param [Array<PBXNativeTarget>] native_targets
# the targets which are checked for presence of Swift source code
#
# @return [Boolean] Whether the user project targets to integrate into
# uses Swift
#
def
compute_user_project_targets_require_framework
(
native_targets
)
native_targets
.
any?
do
|
target
|
def
compute_user_project_targets_require_framework
(
target_definition
,
native_targets
)
target_definition
.
platform
.
supports_dynamic_frameworks?
||
native_targets
.
any?
do
|
target
|
target
.
source_build_phase
.
files
.
any?
{
|
f
|
f
.
file_ref
.
last_known_file_type
==
'sourcecode.swift'
}
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