Preferences Panes written in Swift 4 and used in High Sierra

Originator:klaasmer
Number:rdar://35648336 Date Originated:20-Nov-2017 08:56 PM
Status:Duplicate/25569037 Resolved:
Product:macOS + SDK Product Version:10.13.2 (17C76a)
Classification:Serious Bug Reproducible:Always
 
Summary:
I have a larger application that is written in Swift and has a preferences pane. After the migration to Xcode 9.1 and Swift 4 the preferences pane stopped working. I managed to reproduce the issue with a very small sample project. It is more or less the Xcode template for preferences panes with one class written in Swift.

Steps to Reproduce:
Clone my repo https://github.com/klaas/QlaasSwiftPreferencesPane, build the sample preferences pane, install it and select it in System Preferences.

Expected Results:
The preferences pane should show up. There should be no complain about non-Intel-compatibility.

Actual Results:
An error window is displayed: “Preferences Error - You can’t open QlaasSwiftPreferencesPane preferences pane because it doesn’t work on an Intel-based Mac.”. The pane does not open.

Version:
10.13.2 (17C76a)

Notes:
The same applies to screen savers written in Swift. See https://github.com/klaas/QlaasSwiftScreenSaver

Comments

Fixed in the latest macOS High Sierra release

See https://stackoverflow.com/questions/32041677/using-swift-with-an-os-x-preference-pane-plugin/49817203#49817203

has been marked as dupe of 25569037


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!