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
a81af989
Commit
a81af989
authored
Jul 10, 2017
by
Dimitris Koutsogiorgas
Committed by
GitHub
Jul 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6842 from dnkoutso/cmd_u_for_library_targets
Include test schemes within library schemes
parents
a9da629c
48e32785
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 @
a81af989
...
...
@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
*
None.
*
Include test schemes within library schemes
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6765
](
https://github.com/CocoaPods/CocoaPods/issues/6765
)
##### Bug Fixes
...
...
lib/cocoapods/installer/xcode/pods_project_generator.rb
View file @
a81af989
...
...
@@ -73,7 +73,13 @@ module Pod
if
installation_options
.
deterministic_uuids?
UI
.
message
(
'- Generating deterministic UUIDs'
)
{
project
.
predictabilize_uuids
}
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
end
end
...
...
lib/cocoapods/target/pod_target.rb
View file @
a81af989
...
...
@@ -7,7 +7,7 @@ module Pod
#
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.
#
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