/AutoImport

AutoImport for XCode, replace Peckham.

Primary LanguageObjective-C

AutoImport

AutoImport, handy Xcode plugin to import heaer file automatically. Because sometimes you are on 999th line of code and scrolling up just to add an import is a waste of time.

Support

AutoImport is a Xcode Source Editor Extension, supports Xcode 8 and above. Replacements of Peckham, as  decided to drop support for Xcode plugins in Xcode 8.

AutoImport by Menu

Usage

AutoImport Key Binding

Usage

AutoImport by Quick Key

Usage

Credits

I am using some helper functions to deal with the filtering out source text fromCleanHeaders-Xcode and xTextHandler-objc, thanks for the awesome class.

Installation

  1. On OS X 10.11 El Capitan, run the following command and restart your Mac:

     sudo /usr/libexec/xpccachectl
    
  2. Open AutoImport.xcodeproj

  3. Enable target signing for both the Application and the Source Code Extension using your own developer ID

  4. Product > Archive

  5. Right click archive > Show in Finder

  6. Right click archive > Show Package Contents

  7. Drag AutoImport.app to your Applications folder

  8. Run AutoImport.app and exit again.

  9. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension

  10. The menu-item should now be available from Xcode's Editor menu.