I created a source editor extension but don't understand how to use it. It works fine in debugging version of Xcode (with gray icon) but I cannot find a way to install this extension to "real" Xcode. Documentation is quite obscure for this topic. What I have tried - 1. Build and run host application. 2. Move resulting .appex file into PlugIns directory of Xcode. Nothing worked for me.
I use macOS Sierra and Xcode 8.
Overview. You build extensions to the source editor in Xcode using XcodeKit. Source editor extensions can read and modify the contents of a source file, as well as read and modify the current text selection within the editor.
A buffer you use to access and modify the text contents and text selections in a source editor.
There is a nice tutorial on github page of SwiftInitializerGenerator extension: https://github.com/Bouke/SwiftInitializerGenerator#installation
Installation:
A few notes:
If you open 'System Preferences' > Extension, it should show under 'Xcode Source Editor'.
Move extension to the trash, reopen 'System Preferences', extension is gone. Guessing this is the uninstall how to.
Move extension out of the trash and reopen 'System Preferences', it will reappears.
You must run the Extension App at least once. The registration is managed through macOS Launch Services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With