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
f4303a69
Commit
f4303a69
authored
Mar 16, 2017
by
Ben Asher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment fix. Appease rubocop
parent
04edd617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pod_target_installer.rb
...ller/xcode/pods_project_generator/pod_target_installer.rb
+2
-3
No files found.
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
View file @
f4303a69
...
@@ -80,7 +80,7 @@ module Pod
...
@@ -80,7 +80,7 @@ module Pod
#
#
# @note Core Data model directories (.xcdatamodeld) used to be added to the
# @note Core Data model directories (.xcdatamodeld) used to be added to the
# `Copy Resources` build phase like all other resources, since they would
# `Copy Resources` build phase like all other resources, since they would
# compile correctly in either the resources or compile pha
es
. In recent
# compile correctly in either the resources or compile pha
se
. In recent
# versions of xcode, there's an exception for data models that generate
# versions of xcode, there's an exception for data models that generate
# headers. These need to be added to the compile sources phase of a real
# headers. These need to be added to the compile sources phase of a real
# target for the headers to be built in time for code in the target to
# target for the headers to be built in time for code in the target to
...
@@ -101,7 +101,7 @@ module Pod
...
@@ -101,7 +101,7 @@ module Pod
ref
ref
end
.
compact
.
uniq
end
.
compact
.
uniq
compile_phase_matcher
=
lambda
{
|
ref
|
!
(
ref
.
path
=~
/.*\.xcdatamodeld/i
).
nil?
}
compile_phase_matcher
=
lambda
{
|
ref
|
!
(
ref
.
path
=~
/.*\.xcdatamodeld/i
).
nil?
}
resources_phase_refs
=
file_references
.
reject
(
&
compile_phase_matcher
)
resources_phase_refs
=
file_references
.
reject
(
&
compile_phase_matcher
)
compile_phase_refs
=
file_references
.
select
(
&
compile_phase_matcher
)
compile_phase_refs
=
file_references
.
select
(
&
compile_phase_matcher
)
yield
resources_phase_refs
,
compile_phase_refs
yield
resources_phase_refs
,
compile_phase_refs
...
@@ -170,7 +170,6 @@ module Pod
...
@@ -170,7 +170,6 @@ module Pod
def
add_resources_bundle_targets
def
add_resources_bundle_targets
target
.
file_accessors
.
each
do
|
file_accessor
|
target
.
file_accessors
.
each
do
|
file_accessor
|
file_accessor
.
resource_bundles
.
each
do
|
bundle_name
,
paths
|
file_accessor
.
resource_bundles
.
each
do
|
bundle_name
,
paths
|
label
=
target
.
resources_bundle_target_label
(
bundle_name
)
label
=
target
.
resources_bundle_target_label
(
bundle_name
)
bundle_target
=
project
.
new_resources_bundle
(
label
,
file_accessor
.
spec_consumer
.
platform_name
)
bundle_target
=
project
.
new_resources_bundle
(
label
,
file_accessor
.
spec_consumer
.
platform_name
)
bundle_target
.
product_reference
.
tap
do
|
bundle_product
|
bundle_target
.
product_reference
.
tap
do
|
bundle_product
|
...
...
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