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
daa67520
Commit
daa67520
authored
May 07, 2013
by
Jeremy Slater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure integration targets without specs
parent
df7a0272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
33 deletions
+23
-33
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+23
-33
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
daa67520
...
...
@@ -164,10 +164,27 @@ module Pod
def
generate_targets
targets
=
[]
result
.
specs_by_target
.
each
do
|
target_definition
,
specs
|
libs_by_name
=
{}
target
=
Target
.
new
(
target_definition
,
sandbox
)
targets
<<
target
target
.
support_files_root
=
sandbox
.
library_support_files_dir
(
target
.
name
)
target
.
platform
=
target_definition
.
platform
if
config
.
integrate_targets?
project_path
=
compute_user_project_path
(
target_definition
)
user_project
=
Xcodeproj
::
Project
.
new
(
project_path
)
native_targets
=
compute_user_project_targets
(
target_definition
,
user_project
)
target
.
user_project_path
=
project_path
target
.
client_root
=
project_path
.
dirname
target
.
user_target_uuids
=
native_targets
.
map
(
&
:uuid
)
target
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
else
target
.
client_root
=
config
.
installation_root
target
.
user_target_uuids
=
[]
target
.
user_build_configurations
=
{}
end
specs
.
each
do
|
spec
|
lib_target
=
Podfile
::
TargetDefinition
.
from_hash
(
target_definition
.
to_hash
,
target_definition
.
parent
)
if
target_definition
.
name
==
'Pods'
...
...
@@ -177,42 +194,15 @@ module Pod
end
lib
=
Target
.
new
(
lib_target
,
sandbox
)
libs_by_name
[
spec
.
name
]
=
lib
lib
.
support_files_root
=
sandbox
.
library_support_files_dir
(
lib
.
name
)
lib
.
platform
=
target_definition
.
platform
lib
.
spec
=
spec
lib
.
support_files_root
=
target
.
support_files_root
lib
.
platform
=
target
.
platform
lib
.
user_project_path
=
target
.
user_project_path
lib
.
client_root
=
target
.
client_root
lib
.
user_build_configurations
=
target
.
user_build_configurations
target
.
support_files_root
=
sandbox
.
library_support_files_dir
(
target
.
name
)
target
.
platform
=
target_definition
.
platform
if
config
.
integrate_targets?
project_path
=
compute_user_project_path
(
target_definition
)
user_project
=
Xcodeproj
::
Project
.
new
(
project_path
)
native_targets
=
compute_user_project_targets
(
target_definition
,
user_project
)
lib
.
user_project_path
=
project_path
lib
.
client_root
=
project_path
.
dirname
lib
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
target
.
user_project_path
=
project_path
target
.
client_root
=
project_path
.
dirname
target
.
user_target_uuids
=
native_targets
.
map
(
&
:uuid
)
target
.
user_build_configurations
=
compute_user_build_configurations
(
target_definition
,
native_targets
)
else
lib
.
client_root
=
config
.
installation_root
lib
.
user_target_uuids
=
[]
lib
.
user_build_configurations
=
{}
target
.
client_root
=
config
.
installation_root
target
.
user_target_uuids
=
[]
target
.
user_build_configurations
=
{}
end
target
.
libraries
<<
lib
end
target
.
libraries
.
each
do
|
library
|
library
.
libraries
=
library
.
spec
.
dependencies
(
library
.
platform
).
map
{
|
dep
|
libs_by_name
[
dep
.
name
]
}
end
end
targets
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