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
7a599f66
Commit
7a599f66
authored
Apr 19, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetSettings] Say there is no module map to import when the target is not being built
parent
fb46e559
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
build_settings.rb
lib/cocoapods/target/build_settings.rb
+1
-0
pod_target_settings_spec.rb
spec/unit/target/build_settings/pod_target_settings_spec.rb
+6
-0
No files found.
lib/cocoapods/target/build_settings.rb
View file @
7a599f66
...
@@ -650,6 +650,7 @@ module Pod
...
@@ -650,6 +650,7 @@ module Pod
# @return [Array<String>]
# @return [Array<String>]
define_build_settings_method
:module_map_file_to_import
,
:memoized
=>
true
do
define_build_settings_method
:module_map_file_to_import
,
:memoized
=>
true
do
return
unless
target
.
should_build?
return
if
target
.
requires_frameworks?
return
if
target
.
requires_frameworks?
return
unless
target
.
defines_module?
return
unless
target
.
defines_module?
...
...
spec/unit/target/build_settings/pod_target_settings_spec.rb
View file @
7a599f66
...
@@ -176,6 +176,12 @@ module Pod
...
@@ -176,6 +176,12 @@ module Pod
@xcconfig
.
to_hash
[
'PRODUCT_BUNDLE_IDENTIFIER'
].
should
==
'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}'
@xcconfig
.
to_hash
[
'PRODUCT_BUNDLE_IDENTIFIER'
].
should
==
'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}'
end
end
it
'does not have a module map to import if it is not built'
do
@pod_target
.
stubs
(
:should_build?
=>
false
,
:requires_frameworks?
=>
false
,
:defines_module?
=>
true
)
@generator
.
generate
@generator
.
module_map_file_to_import
.
should
.
be
.
nil
end
it
'saves the xcconfig'
do
it
'saves the xcconfig'
do
path
=
temporary_directory
+
'sample.xcconfig'
path
=
temporary_directory
+
'sample.xcconfig'
@generator
.
save_as
(
path
)
@generator
.
save_as
(
path
)
...
...
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