Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.25 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.25 KB

🙅‍♂️ Cocoapods no autoimports

A cocoapods plugin that let's you hook in generating umbrella and prefix headers for pods. And remove autoimports of

  1. UIKit.h
  2. Cocoa.h
  3. Foundation.h

⭐ Usage

Add this line to your application's Gemfile:

gem 'cocoapods-no-autoimports'

Add this line to your Podfile:

plugin 'cocoapods-no-autoimports'
# cocoapods-no-autoimports__pods = ['YourPod__Core', 'YourPod__UI']

The plugin will parse the Podfile and look for cocoapods-no-autoimports__pods key. Make sure to list your pods to which you want to apply plugin to in cocoapods-no-autoimports__pods array. It got to be comment in 1 line.

Execute:

$ bundle install

Now run:

$ pod install

Done! Now go and check your Xcode build erros 😁

License

The gem is available as open source under the terms of the MIT License.

Additional Info

  • This gem is distributed via RubyGems.org
  • Special thanks to Keith's repo got me started
  • This ticket was the problem for us as well so I decided to built a plugin