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
023e22d4
Commit
023e22d4
authored
Apr 06, 2013
by
Marin Usalj
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #934 from mneorr/inhibit_warnings
added inhibit warnings per pod. fixes #674
parents
c2a192f0
976f8ee8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
CHANGELOG.md
CHANGELOG.md
+7
-0
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+4
-1
target_installer_spec.rb
spec/unit/installer/target_installer_spec.rb
+12
-0
No files found.
CHANGELOG.md
View file @
023e22d4
...
...
@@ -15,6 +15,13 @@
has been renamed to
`--no-repo-update`
.
[
#913
](
https://github.com/CocoaPods/CocoaPods/issues/913
)
###### Enhancements
*
Added the ability to inhibit warnings per pod.
Just pass
`:inhibit_warnings => true`
inline.
[
#10
](
https://github.com/CocoaPods/Core/pull/10
)
[
#934
](
https://github.com/CocoaPods/CocoaPods/pull/934
)
###### Bug fixes
*
Improved handling for Xcode projects containing non ASCII characters.
...
...
lib/cocoapods/installer/target_installer.rb
View file @
023e22d4
...
...
@@ -362,7 +362,10 @@ module Pod
flags
<<
'-DOS_OBJECT_USE_OBJC=0'
end
end
flags
=
flags
*
" "
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
flags
<<
'-w'
end
flags
*
" "
end
#-----------------------------------------------------------------------#
...
...
spec/unit/installer/target_installer_spec.rb
View file @
023e22d4
...
...
@@ -254,6 +254,18 @@ module Pod
ios_flags
.
should
.
include
'-DOS_OBJECT_USE_OBJC'
osx_flags
.
should
.
include
'-DOS_OBJECT_USE_OBJC'
end
it
"adds -w per pod if target definition inhibits warnings for that pod"
do
@installer
.
library
.
target_definition
.
stubs
(
:inhibits_warnings_for_pod?
).
returns
(
true
)
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
include?
(
'-w'
)
end
it
"doesn't inhibit warnings by default"
do
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
))
flags
.
should
.
not
.
include?
(
'-w'
)
end
end
end
end
...
...
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