我正在尝试为我的应用创建自定义“系统偏好设置”面板。但是,当我尝试加载它进行测试时,我在控制台中得到了这个:
Apr 26 17:16:17 computer-name System Preferences[8545]: dlopen_preflight failed with dlopen_preflight(/Users/username/Library/PreferencePanes/App Name.prefPane/Contents/MacOS/App Name): Library not loaded: @rpath/libswiftAppKit.dylib
Referenced from: /Users/username/Library/PreferencePanes/App Name.prefPane/Contents/MacOS/App Name
Reason: image not found for /Users/username/Library/PreferencePanes/App Name.prefPane
似乎AppKit的Swift包装器无法加载...我确定需要的东西。 那么这里发生了什么以及如何解决?