Using Swift with an OS X Preference Pane plugin
问题 I'd like to use Swift to build an OS X Preference Pane plugin for the System Preferences app, but I can't get it to work. After clicking "Next" the Xcode template doesn't offer an option to choose Swift as a language, but automatically creates the project in Objective-C. Without adding any code or doing anything else, the project builds successfully. If you right-click on the Product and select "Open in External Editor", System Preferences will successfully install and load the preference