How can I silence warnings from all pods except local pods?

前端 未结 3 1495
太阳男子
太阳男子 2021-02-18 17:12

I\'m assuming something along the lines of

post_install do |installer|

  # Debug symbols
  installer.pod_project.targets.each do |target|
    target.build_conf         


        
3条回答
  •  迷失自我
    2021-02-18 17:49

    Podfile Solution

    While ignore_all_warnings is an all or none proposition, you can :inhibit_warnings => true on any individual pod in the Podfile.

    # Disable warnings for each remote Pod
    pod 'TGPControls', :inhibit_warnings => true
    
    # Do not disable warnings for your own development Pod
    pod 'Name', :path => '~/code/Pods/' 
    

提交回复
热议问题