Skip to content

A CocoaPods plugin for removing autoimported [UIKit/Cocoa/Foundation] headers.

License

Notifications You must be signed in to change notification settings

ivanglushko/cocoapods-no-autoimports

Repository files navigation

🙅‍♂️ 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

About

A CocoaPods plugin for removing autoimported [UIKit/Cocoa/Foundation] headers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published