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
d01e3724
Commit
d01e3724
authored
Aug 24, 2016
by
Ben Asher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raise Informative if nil target defs
parent
534c997b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+2
-0
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
d01e3724
...
@@ -269,6 +269,7 @@ module Pod
...
@@ -269,6 +269,7 @@ module Pod
target_definitions_by_uuid
=
{}
target_definitions_by_uuid
=
{}
aggregate_targets
.
each
do
|
target
|
aggregate_targets
.
each
do
|
target
|
target
.
user_targets
.
map
(
&
:uuid
).
each
do
|
uuid
|
target
.
user_targets
.
map
(
&
:uuid
).
each
do
|
uuid
|
raise
Informative
,
"Missing target definition for target:
#{
target
.
name
}
"
if
target
.
target_definition
.
nil?
target_definitions_by_uuid
[
uuid
]
=
target
.
target_definition
target_definitions_by_uuid
[
uuid
]
=
target
.
target_definition
end
end
end
end
...
@@ -325,6 +326,7 @@ module Pod
...
@@ -325,6 +326,7 @@ module Pod
end
end
host_uuid_to_embedded_target_definitions
.
each
do
|
uuid
,
target_definitions
|
host_uuid_to_embedded_target_definitions
.
each
do
|
uuid
,
target_definitions
|
host_target_definition
=
target_definitions_by_uuid
[
uuid
]
host_target_definition
=
target_definitions_by_uuid
[
uuid
]
raise
Informative
,
"Missing target definition for host uuid:
#{
uuid
}
"
if
host_target_definition
.
nil?
target_definitions
.
each
do
|
target_definition
|
target_definitions
.
each
do
|
target_definition
|
check_prop
.
call
(
host_target_definition
,
target_definition
,
:platform
,
'do not use the same platform'
)
check_prop
.
call
(
host_target_definition
,
target_definition
,
:platform
,
'do not use the same platform'
)
check_prop
.
call
(
host_target_definition
,
target_definition
,
:uses_frameworks?
,
'do not both set use_frameworks!'
)
check_prop
.
call
(
host_target_definition
,
target_definition
,
:uses_frameworks?
,
'do not both set use_frameworks!'
)
...
...
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