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
48b7e5c5
Commit
48b7e5c5
authored
May 26, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetIntegrator] Detect the target with the matching name.
parent
919c0acc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
user_project_integrator.rb
lib/cocoapods/installer/user_project_integrator.rb
+6
-1
No files found.
lib/cocoapods/installer/user_project_integrator.rb
View file @
48b7e5c5
...
...
@@ -110,10 +110,15 @@ module Pod
def
targets
@targets
||=
begin
if
link_with
=
@target_definition
.
link_with
# Find explicitly
nam
ed targets.
# Find explicitly
link
ed targets.
user_project
.
targets
.
select
do
|
target
|
link_with
.
include?
target
.
name
end
elsif
@target_definition
.
name
!=
:default
# Find the target with the matching name.
target
=
user_project
.
targets
.
find
{
|
target
|
target
.
name
==
@target_definition
.
name
.
to_s
}
raise
Informative
,
"Unable to find a target named `
#{
@target_definition
.
name
.
to_s
}
'"
unless
target
[
target
]
else
# Default to the first, which in a simple project is probably an app target.
[
user_project
.
targets
.
first
]
...
...
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