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
1238317f
Commit
1238317f
authored
Apr 30, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetInstaller] Create unique hash instances for the build settings
Closes #1014
parent
825ab991
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-1
target_installer_spec.rb
spec/unit/installer/target_installer_spec.rb
+7
-1
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
1238317f
...
...
@@ -80,7 +80,7 @@ module Pod
unless
@target
.
build_configurations
.
map
(
&
:name
).
include?
(
bc_name
)
build_config
=
project
.
new
(
Xcodeproj
::
Project
::
XCBuildConfiguration
)
build_config
.
name
=
bc_name
settings
=
@target
.
build_settings
(
type
.
to_s
.
capitalize
)
settings
=
@target
.
build_settings
(
type
.
to_s
.
capitalize
)
.
dup
build_config
.
build_settings
=
settings
target
.
build_configurations
<<
build_config
end
...
...
spec/unit/installer/target_installer_spec.rb
View file @
1238317f
...
...
@@ -105,7 +105,7 @@ module Pod
it
"adds the settings of the xcconfig that need to be overridden to the target"
do
@installer
.
install!
build_configuration
=
@project
.
targets
.
first
.
build_configurations
build_settings
=
build_configuration
.
first
.
build_settings
build_settings
=
build_configuration
.
first
.
build_settings
Generator
::
XCConfig
.
pods_project_settings
.
each
do
|
key
,
value
|
build_settings
[
key
].
should
==
value
end
...
...
@@ -116,6 +116,12 @@ module Pod
@project
.
targets
.
first
.
build_configurations
.
map
(
&
:name
).
sort
.
should
==
%w{ AppStore Debug Release Test }
end
it
"it creates different hash instances for the build settings of various build configurations"
do
@installer
.
install!
build_settings
=
@project
.
targets
.
first
.
build_configurations
.
map
(
&
:build_settings
)
build_settings
.
map
(
&
:object_id
).
uniq
.
count
.
should
==
4
end
it
"does not enable the GCC_WARN_INHIBIT_ALL_WARNINGS flag by default"
do
@installer
.
install!
@installer
.
library
.
target
.
build_configurations
.
each
do
|
config
|
...
...
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