Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating inhibit_all_warnings causes error #472

Closed
PWrzesinski opened this issue Nov 21, 2018 · 1 comment
Closed

Repeating inhibit_all_warnings causes error #472

PWrzesinski opened this issue Nov 21, 2018 · 1 comment

Comments

@PWrzesinski
Copy link

Report

What did you do?

ℹ Please replace these two lines with what you did.
Run pod install

What did you expect to happen?

Install all pod dependencies correctly.

What happened instead?

TypeError - no implicit conversion of true into Array
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/cocoapods-core-1.5.3/lib/cocoapods-core/podfile/target_definition.rb:856:in `concat'
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/cocoapods-core-1.5.3/lib/cocoapods-core/podfile/target_definition.rb:856:in `block in inhibit_warnings_hash'
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/cocoapods-core-1.5.3/lib/cocoapods-core/podfile/target_definition.rb:855:in `merge'
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/cocoapods-core-1.5.3/lib/cocoapods-core/podfile/target_definition.rb:855:in `inhibit_warnings_hash'
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/cocoapods-core-1.5.3/lib/cocoapods-core/podfile/target_definition.rb:304:in `inhibits_warnings_for_pod?'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/target/pod_target.rb:551:in `block in inhibit_warnings?'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/target/pod_target.rb:550:in `map'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/target/pod_target.rb:550:in `inhibit_warnings?'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:576:in `compiler_flags_for_consumer'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:191:in `block (2 levels) in add_files_to_build_phases'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:189:in `each'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:189:in `block in add_files_to_build_phases'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:177:in `each'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:177:in `add_files_to_build_phases'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:27:in `block in install!'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:19:in `install!'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:176:in `block (2 levels) in install_libraries'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:173:in `each'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:173:in `block in install_libraries'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:183:in `generate_pods_project'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:119:in `install!'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Users/przemekw/.rvm/gems/ruby-2.4.2@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Users/przemekw/.rvm/gems/ruby-2.4.2/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/Users/przemekw/.rvm/gems/ruby-2.4.2/bin/pod:23:in `load'
/Users/przemekw/.rvm/gems/ruby-2.4.2/bin/pod:23:in `<main>'
/Users/przemekw/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `eval'
/Users/przemekw/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `<main>'

Project that demonstrates the issue

Repeating inhibit_all_warnings:

project ...

platform :ios, '9.0'

# ignore all warnings from all pods
inhibit_all_warnings!

...

target ... do

  use_frameworks!

  inhibit_all_warnings!

  ...
end
@amorde
Copy link
Member

amorde commented Dec 9, 2018

Thanks for the report @PWrzesinski - the fix will be included in the next release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants