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
48e32785
Commit
48e32785
authored
Jul 03, 2017
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include test schemes within library schemes
parent
a9da629c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
CHANGELOG.md
CHANGELOG.md
+3
-1
pods_project_generator.rb
lib/cocoapods/installer/xcode/pods_project_generator.rb
+7
-1
pod_target.rb
lib/cocoapods/target/pod_target.rb
+1
-1
No files found.
CHANGELOG.md
View file @
48e32785
...
@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
##### Enhancements
*
None.
*
Include test schemes within library schemes
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6765
](
https://github.com/CocoaPods/CocoaPods/issues/6765
)
##### Bug Fixes
##### Bug Fixes
...
...
lib/cocoapods/installer/xcode/pods_project_generator.rb
View file @
48e32785
...
@@ -73,7 +73,13 @@ module Pod
...
@@ -73,7 +73,13 @@ module Pod
if
installation_options
.
deterministic_uuids?
if
installation_options
.
deterministic_uuids?
UI
.
message
(
'- Generating deterministic UUIDs'
)
{
project
.
predictabilize_uuids
}
UI
.
message
(
'- Generating deterministic UUIDs'
)
{
project
.
predictabilize_uuids
}
end
end
project
.
recreate_user_schemes
(
false
)
library_product_types
=
[
:framework
,
:dynamic_library
,
:static_library
]
project
.
recreate_user_schemes
(
false
)
do
|
scheme
,
target
|
next
unless
library_product_types
.
include?
target
.
symbol_type
pod_target
=
pod_targets
.
find
{
|
pt
|
pt
.
native_target
==
target
}
next
if
pod_target
.
nil?
||
pod_target
.
test_native_targets
.
empty?
pod_target
.
test_native_targets
.
each
{
|
test_native_target
|
scheme
.
add_test_target
(
test_native_target
)
}
end
project
.
save
project
.
save
end
end
end
end
...
...
lib/cocoapods/target/pod_target.rb
View file @
48e32785
...
@@ -7,7 +7,7 @@ module Pod
...
@@ -7,7 +7,7 @@ module Pod
#
#
attr_reader
:specs
attr_reader
:specs
# @return [Array<
PBXNativeTarget
>] the target definitions of the Podfile
# @return [Array<
TargetDefinition
>] the target definitions of the Podfile
# that generated this target.
# that generated this target.
#
#
attr_reader
:target_definitions
attr_reader
:target_definitions
...
...
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