Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

输入法首选项不响应 CMD+W & 暗黑模式时,首选项某视图出现白底白字 #47

Closed
ShikiSuen opened this issue Mar 19, 2022 · 16 comments
Labels
bug Something isn't working

Comments

@ShikiSuen
Copy link
Contributor

image

@ShikiSuen
Copy link
Contributor Author

另外,这个视窗不响应 CMD+W。
会不会是 MainMenu.xib 或者 Main.storyboard 当中的「关掉当前视窗」的选单项被砍了?

@ShikiSuen ShikiSuen changed the title 暗黑模式时,输入法首选项某视图出现白底白字 输入法首选项不响应 CMD+W & 暗黑模式时,首选项某视图出现白底白字 Mar 19, 2022
@ShikiSuen
Copy link
Contributor Author

ShikiSuen commented Mar 19, 2022

看来这里需要补上 CMD+W 关掉当前视窗的选项,或者我在上面提到的几个文件当中补上也可以:
https://github.com/qwertyyb/Fire/blob/38b602f7bf429923b7bb3dca05936abd3d88c075/Fire/FireMenu.swift

@qwertyyb
Copy link
Owner

你这里说的command + w关闭弹窗是菜单项的快捷键,输入法的activePolicy是不包含菜单栏的,所以这里在添加菜单项的方案走不通。需要在窗口内重写keyUp或keyDown方法才行,然而这里的Window是Preferences提供的。

黑暗模式下应用设置的问题会修复

@ShikiSuen
Copy link
Contributor Author

@qwertyyb 我看您的 MainMenu.xib 是空的。
我之前也是觉得这里多余、就将威注音的 MainMenu.xib 砍了,结果所有偏好设定视窗都无法用 CMD+W 关闭了。
后来我往里面补了个关闭命令才正常。
image

我稍后推个 PR 给您看看。

@ShikiSuen
Copy link
Contributor Author

另外这四个依赖包要不要考虑换成 Swift Package Manager?直接添入下面的网址即可:
https://gitee.com/mirrors_sparkle-project/Sparkle.git
https://gitee.com/mirrors_realm/SwiftLint.git
https://gitee.com/mirrors_sindresorhus/Defaults.git
https://gitee.com/mirrors_sindresorhus/Preferences.git

pods 折腾了半天还是编译不了,欸。

@qwertyyb
Copy link
Owner

我试下切到swift package manager

@ShikiSuen
Copy link
Contributor Author

image

看来只要在墙内就这个命……

@ShikiSuen
Copy link
Contributor Author

好歹我这边折腾完 SPM 了,结果还是有很多报错:

/Users/shikisuen/Repos/Fire(shiki/scratch)> xcodebuild -scheme Fire build
2022-03-20 19:35:17.653 xcodebuild[51052:578505] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-20 19:35:17.653 xcodebuild[51052:578505] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme Fire build

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Resolve Package Graph

Resolved source packages:
  SwiftyTextTable: https://github.com/scottrhoyt/SwiftyTextTable.git @ 0.9.0
  SwiftLint: https://gitee.com/mirrors_realm/SwiftLint.git @ 0.46.5
  Preferences: https://gitee.com/mirrors_sindresorhus/Preferences.git @ main
  Yams: https://github.com/jpsim/Yams.git @ 4.0.6
  Defaults: https://gitee.com/mirrors_sindresorhus/Defaults.git @ main
  SWXMLHash: https://github.com/drmohundro/SWXMLHash.git @ 6.0.0
  swift-argument-parser: https://github.com/apple/swift-argument-parser.git @ 1.1.1
  SourceKitten: https://github.com/jpsim/SourceKitten.git @ 0.32.0
  Sparkle: https://gitee.com/mirrors_sparkle-project/Sparkle.git @ 2.x

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:365DE35A-8BE9-5F6D-B9CE-6D1F53D09CB3 }
{ platform:macOS, name:Any Mac }

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: 830843bc808a7541d87177bec6472d25
Build description path: /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/XCBuildData/830843bc808a7541d87177bec6472d25-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Fire' from project 'Fire')
    cd /Users/shikisuen/Repos/Fire
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Fire -O -whole-module-optimization -enforce-exclusivity\=checked @/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Fire.SwiftFileList -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/SourceKit.modulemap -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/Clang_C.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -target x86_64-apple-macos10.15 -g -module-cache-path /Users/shikisuen/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -swift-version 5 -I /Users/shikisuen/Repos/Fire/Build/Products/Release -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release -c -num-threads 12 -output-file-map /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Fire-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Fire.swiftmodule -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-generated-files.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-own-target-headers.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-project-headers.hmap -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/SourceKit/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/Clang_C/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Yams/Sources/CYaml/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Products/Release/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources-normal/x86_64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources/x86_64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Fire-Swift.h -working-directory /Users/shikisuen/Repos/Fire
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization

CompileSwift normal x86_64 (in target 'Fire' from project 'Fire')
    cd /Users/shikisuen/Repos/Fire
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/shikisuen/Repos/Fire/Fire/Utils/ModifierKeyUpChecker.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/ThesaurusPane.swift /Users/shikisuen/Repos/Fire/Fire/FireInputController.swift /Users/shikisuen/Repos/Fire/Fire/Fire.swift /Users/shikisuen/Repos/Fire/Fire/Utils.swift /Users/shikisuen/Repos/Fire/Fire/Table/build.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift /Users/shikisuen/Repos/Fire/Fire/FireMenu.swift /Users/shikisuen/Repos/Fire/Fire/AppDelegate.swift /Users/shikisuen/Repos/Fire/Fire/InputSource.swift /Users/shikisuen/Repos/Fire/Fire/CandidatesWindow.swift /Users/shikisuen/Repos/Fire/Fire/types.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/ApplicationPane.swift /Users/shikisuen/Repos/Fire/Fire/Utils/ApplicationSettingCache.swift /Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift /Users/shikisuen/Repos/Fire/Fire/Utils/TipsWindow.swift /Users/shikisuen/Repos/Fire/Fire/Utils/ToastWindow.swift -supplementary-output-file-map /var/folders/10/6wq7rrd57qx334gglsl_cfs00000gq/T/TemporaryDirectory.9Y6rBo/supplementaryOutputs-1 -target x86_64-apple-macos10.15 -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -I /Users/shikisuen/Repos/Fire/Build/Products/Release -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release -g -module-cache-path /Users/shikisuen/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -O -new-driver-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -Xcc -working-directory -Xcc /Users/shikisuen/Repos/Fire -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/SourceKit.modulemap -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/Clang_C.modulemap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-generated-files.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-own-target-headers.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-project-headers.hmap -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/SourceKit/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/Clang_C/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Yams/Sources/CYaml/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Products/Release/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources-normal/x86_64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources/x86_64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources -module-name Fire -target-sdk-version 12.3 -num-threads 12 -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/ModifierKeyUpChecker.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/ThesaurusPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/FireInputController.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Fire.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/Utils.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/build.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/GeneralPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/FireMenu.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/AppDelegate.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/InputSource.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/CandidatesWindow.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/types.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/FirePreferencesController.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/ApplicationPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/ApplicationSettingCache.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/CandidatesView.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/TipsWindow.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/x86_64/ToastWindow.o
/Users/shikisuen/Repos/Fire/Fire/types.swift:91:30: error: type 'ApplicationSettingItem' does not conform to protocol 'DefaultsSerializable'
    static let appSettings = Key<[String: ApplicationSettingItem]>(
                             ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:91:30: error: 'Defaults.Key' requires that 'ApplicationSettingItem' conform to 'DefaultsSerializable'
    static let appSettings = Key<[String: ApplicationSettingItem]>(
                             ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:42:21: note: requirement specified as 'ApplicationSettingItem' : 'DefaultsSerializable'
        public final class Key<Value: Serializable>: AnyKey {
                           ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:42:21: note: requirement from conditional conformance of '[String : ApplicationSettingItem]' to 'DefaultsSerializable'
        public final class Key<Value: Serializable>: AnyKey {
                           ^
/Users/shikisuen/Repos/Fire/Fire/FireInputController.swift:337:51: error: type of expression is ambiguous without more context
        if let appSetting = Defaults[.appSettings][identifier],
                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/shikisuen/Repos/Fire/Fire/types.swift:75:27: error: type 'CodeMode' does not conform to protocol 'DefaultsSerializable'
    static let codeMode = Key<CodeMode>("codeMode", default: CodeMode.wubiPinyin)
                          ^
/Users/shikisuen/Repos/Fire/Fire/Fire.swift:69:24: error: generic parameter 'Value' could not be inferred
        let codeMode = Defaults[.codeMode]
                       ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/Fire.swift:172:24: error: generic parameter 'Value' could not be inferred
        let codeMode = Defaults[.codeMode]
                       ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:84:41: error: type 'InputModeTipWindowType' does not conform to protocol 'DefaultsSerializable'
    static let inputModeTipWindowType = Key<InputModeTipWindowType>(
                                        ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:15:6: error: generic parameter 'Value' could not be inferred
    @Default(.codeMode) private var code
     ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:67:38: error: type 'CandidatesDirection' does not conform to protocol 'DefaultsSerializable'
    static let candidatesDirection = Key<CandidatesDirection>(
                                     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:20:6: error: generic parameter 'Value' could not be inferred
    @Default(.candidatesDirection) private var candidatesDirection
     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:21:6: error: generic parameter 'Value' could not be inferred
    @Default(.inputModeTipWindowType) private var inputModeTipWindowType
     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:33:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker("编码方案", selection: $code) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:33:33: note: explicitly specify the generic arguments to fix this issue
                                Picker("编码方案", selection: $code) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:56:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker("候选词排列", selection: $candidatesDirection) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:56:33: note: explicitly specify the generic arguments to fix this issue
                                Picker("候选词排列", selection: $candidatesDirection) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:91:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker(
                                ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:91:33: note: explicitly specify the generic arguments to fix this issue
                                Picker(
                                ^
                                      <Text, <#SelectionValue: Hashable#>, TupleView<(some View, some View, some View, some View)>>
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:26:29: error: cannot find type 'NSMenu' in scope
    override func menu() -> NSMenu! {
                            ^~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:26:19: error: method does not override any method from its superclass
    override func menu() -> NSMenu! {
    ~~~~~~~~      ^
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:15:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:16:9: error: cannot find 'NSApp' in scope
        NSApp.orderFrontStandardAboutPanel(sender)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:19:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:20:9: warning: 'SUUpdater' is deprecated: Deprecated in Sparkle 2. Use SPUStandardUpdaterController instead, or SPUUpdater if you need more control.
        SUUpdater.shared()?.checkForUpdates(sender)
        ^
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:23:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:18:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.preferencesGeneralName)!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:18:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.preferencesGeneralName)!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:70: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                                                                     ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:32:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.advancedName)!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:32:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.advancedName)!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:27:20: error: cannot find 'NSMenu' in scope
        let menu = NSMenu()
                   ^~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:29:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "关于业火输入法", action: #selector(openAbout(_:)), keyEquivalent: ""),
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:30:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "检查更新", action: #selector(checkForUpdates(_:)), keyEquivalent: ""),
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:31:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "首选项", action: #selector(showPreferences(_:)), keyEquivalent: "")
/Users/shikisuen/Repos/Fire/Fire/Preferences/ApplicationPane.swift:85:6: error: generic parameter 'Value' could not be inferred
    @Default(.appSettings) private var appSettings
     ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:79:21: error: generic parameter 'Value' could not be inferred
    let direction = Defaults[.candidatesDirection]
                    ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:93:66: error: cannot convert value of type 'CandidatesDirection' to expected argument type 'Int'
        if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                                                                 ^
                                                                           .rawValue
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:93:22: error: reference to member 'candidatesDirection' cannot be resolved without a contextual type
        if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                     ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:153:70: error: cannot convert value of type 'CandidatesDirection' to expected argument type 'Int'
            if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                                                                     ^
                                                                               .rawValue

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Fire' from project 'Fire')
    cd /Users/shikisuen/Repos/Fire
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Fire -O -whole-module-optimization -enforce-exclusivity\=checked @/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Fire.SwiftFileList -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/SourceKit.modulemap -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/Clang_C.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -target arm64-apple-macos10.15 -g -module-cache-path /Users/shikisuen/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -swift-version 5 -I /Users/shikisuen/Repos/Fire/Build/Products/Release -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release -c -num-threads 12 -output-file-map /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Fire-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Fire.swiftmodule -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-generated-files.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-own-target-headers.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-project-headers.hmap -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/SourceKit/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/Clang_C/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Yams/Sources/CYaml/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Products/Release/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources-normal/arm64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources/arm64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Fire-Swift.h -working-directory /Users/shikisuen/Repos/Fire
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization

CompileSwift normal arm64 (in target 'Fire' from project 'Fire')
    cd /Users/shikisuen/Repos/Fire
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/shikisuen/Repos/Fire/Fire/Utils/ModifierKeyUpChecker.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/ThesaurusPane.swift /Users/shikisuen/Repos/Fire/Fire/FireInputController.swift /Users/shikisuen/Repos/Fire/Fire/Fire.swift /Users/shikisuen/Repos/Fire/Fire/Utils.swift /Users/shikisuen/Repos/Fire/Fire/Table/build.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift /Users/shikisuen/Repos/Fire/Fire/FireMenu.swift /Users/shikisuen/Repos/Fire/Fire/AppDelegate.swift /Users/shikisuen/Repos/Fire/Fire/InputSource.swift /Users/shikisuen/Repos/Fire/Fire/CandidatesWindow.swift /Users/shikisuen/Repos/Fire/Fire/types.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift /Users/shikisuen/Repos/Fire/Fire/Preferences/ApplicationPane.swift /Users/shikisuen/Repos/Fire/Fire/Utils/ApplicationSettingCache.swift /Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift /Users/shikisuen/Repos/Fire/Fire/Utils/TipsWindow.swift /Users/shikisuen/Repos/Fire/Fire/Utils/ToastWindow.swift -supplementary-output-file-map /var/folders/10/6wq7rrd57qx334gglsl_cfs00000gq/T/TemporaryDirectory.2btsAk/supplementaryOutputs-1 -target arm64-apple-macos10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -I /Users/shikisuen/Repos/Fire/Build/Products/Release -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F /Users/shikisuen/Repos/Fire/Build/Products/Release -g -module-cache-path /Users/shikisuen/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -O -new-driver-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -Xcc -working-directory -Xcc /Users/shikisuen/Repos/Fire -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/SourceKit.modulemap -Xcc -fmodule-map-file\=/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/GeneratedModuleMaps/Clang_C.modulemap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-generated-files.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-own-target-headers.hmap -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Fire-project-headers.hmap -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/SourceKit/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SourceKitten/Source/Clang_C/include -Xcc -I/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Yams/Sources/CYaml/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Products/Release/include -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources-normal/arm64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources/arm64 -Xcc -I/Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/DerivedSources -module-name Fire -target-sdk-version 12.3 -num-threads 12 -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/ModifierKeyUpChecker.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/ThesaurusPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/FireInputController.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Fire.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/Utils.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/build.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/GeneralPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/FireMenu.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/AppDelegate.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/InputSource.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/CandidatesWindow.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/types.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/FirePreferencesController.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/ApplicationPane.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/ApplicationSettingCache.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/CandidatesView.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/TipsWindow.o -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Fire.build/Release/Fire.build/Objects-normal/arm64/ToastWindow.o
/Users/shikisuen/Repos/Fire/Fire/types.swift:91:30: error: type 'ApplicationSettingItem' does not conform to protocol 'DefaultsSerializable'
    static let appSettings = Key<[String: ApplicationSettingItem]>(
                             ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:91:30: error: 'Defaults.Key' requires that 'ApplicationSettingItem' conform to 'DefaultsSerializable'
    static let appSettings = Key<[String: ApplicationSettingItem]>(
                             ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:42:21: note: requirement specified as 'ApplicationSettingItem' : 'DefaultsSerializable'
        public final class Key<Value: Serializable>: AnyKey {
                           ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:42:21: note: requirement from conditional conformance of '[String : ApplicationSettingItem]' to 'DefaultsSerializable'
        public final class Key<Value: Serializable>: AnyKey {
                           ^
/Users/shikisuen/Repos/Fire/Fire/FireInputController.swift:337:51: error: type of expression is ambiguous without more context
        if let appSetting = Defaults[.appSettings][identifier],
                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/shikisuen/Repos/Fire/Fire/types.swift:75:27: error: type 'CodeMode' does not conform to protocol 'DefaultsSerializable'
    static let codeMode = Key<CodeMode>("codeMode", default: CodeMode.wubiPinyin)
                          ^
/Users/shikisuen/Repos/Fire/Fire/Fire.swift:69:24: error: generic parameter 'Value' could not be inferred
        let codeMode = Defaults[.codeMode]
                       ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/Fire.swift:172:24: error: generic parameter 'Value' could not be inferred
        let codeMode = Defaults[.codeMode]
                       ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:84:41: error: type 'InputModeTipWindowType' does not conform to protocol 'DefaultsSerializable'
    static let inputModeTipWindowType = Key<InputModeTipWindowType>(
                                        ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:15:6: error: generic parameter 'Value' could not be inferred
    @Default(.codeMode) private var code
     ^
/Users/shikisuen/Repos/Fire/Fire/types.swift:67:38: error: type 'CandidatesDirection' does not conform to protocol 'DefaultsSerializable'
    static let candidatesDirection = Key<CandidatesDirection>(
                                     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:20:6: error: generic parameter 'Value' could not be inferred
    @Default(.candidatesDirection) private var candidatesDirection
     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:21:6: error: generic parameter 'Value' could not be inferred
    @Default(.inputModeTipWindowType) private var inputModeTipWindowType
     ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:33:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker("编码方案", selection: $code) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:33:33: note: explicitly specify the generic arguments to fix this issue
                                Picker("编码方案", selection: $code) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:56:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker("候选词排列", selection: $candidatesDirection) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:56:33: note: explicitly specify the generic arguments to fix this issue
                                Picker("候选词排列", selection: $candidatesDirection) {
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:91:33: error: generic parameter 'SelectionValue' could not be inferred
                                Picker(
                                ^
/Users/shikisuen/Repos/Fire/Fire/Preferences/GeneralPane.swift:91:33: note: explicitly specify the generic arguments to fix this issue
                                Picker(
                                ^
                                      <Text, <#SelectionValue: Hashable#>, TupleView<(some View, some View, some View, some View, some View, some View, some View)>>
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:26:29: error: cannot find type 'NSMenu' in scope
    override func menu() -> NSMenu! {
                            ^~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:26:19: error: method does not override any method from its superclass
    override func menu() -> NSMenu! {
    ~~~~~~~~      ^
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:15:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:16:9: error: cannot find 'NSApp' in scope
        NSApp.orderFrontStandardAboutPanel(sender)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:19:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:20:9: warning: 'SUUpdater' is deprecated: Deprecated in Sparkle 2. Use SPUStandardUpdaterController instead, or SPUUpdater if you need more control.
        SUUpdater.shared()?.checkForUpdates(sender)
        ^
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:23:9: error: cannot find 'NSApp' in scope
        NSApp.setActivationPolicy(.accessory)
        ^~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:18:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.preferencesGeneralName)!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:18:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.preferencesGeneralName)!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:25:70: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.computerName) ?? NSImage(named: "general")!
                                                                     ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:32:30: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.advancedName)!
                             ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/Preferences/FirePreferencesController.swift:32:45: error: cannot find 'NSImage' in scope
                toolbarIcon: NSImage(named: NSImage.advancedName)!
                                            ^~~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:27:20: error: cannot find 'NSMenu' in scope
        let menu = NSMenu()
                   ^~~~~~
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:29:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "关于业火输入法", action: #selector(openAbout(_:)), keyEquivalent: ""),
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:30:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "检查更新", action: #selector(checkForUpdates(_:)), keyEquivalent: ""),
/Users/shikisuen/Repos/Fire/Fire/FireMenu.swift:31:13: error: cannot find 'NSMenuItem' in scope
            NSMenuItem(title: "首选项", action: #selector(showPreferences(_:)), keyEquivalent: "")
/Users/shikisuen/Repos/Fire/Fire/Preferences/ApplicationPane.swift:85:6: error: generic parameter 'Value' could not be inferred
    @Default(.appSettings) private var appSettings
     ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:79:21: error: generic parameter 'Value' could not be inferred
    let direction = Defaults[.candidatesDirection]
                    ^
/Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/Defaults/Sources/Defaults/Defaults.swift:68:16: note: in call to 'subscript(_:)'
        public static subscript<Value: Serializable>(key: Key<Value>) -> Value {
                      ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:93:66: error: cannot convert value of type 'CandidatesDirection' to expected argument type 'Int'
        if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                                                                 ^
                                                                           .rawValue
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:93:22: error: reference to member 'candidatesDirection' cannot be resolved without a contextual type
        if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                     ^
/Users/shikisuen/Repos/Fire/Fire/CandidatesView.swift:153:70: error: cannot convert value of type 'CandidatesDirection' to expected argument type 'Int'
            if Defaults[.candidatesDirection] == CandidatesDirection.horizontal {
                                                                     ^
                                                                               .rawValue

Ld /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/Binary/swiftlint normal x86_64 (in target 'swiftlint' from project 'SwiftLint')
    cd /Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SwiftLint
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-macos10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -L/Users/shikisuen/Repos/Fire/Build/Products/Release -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release/PackageFrameworks -F/Users/shikisuen/Repos/Fire/Build/Products/Release -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -filelist /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/swiftlint.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -object_path_lto -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/swiftlint_lto.o -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/swiftlint.swiftmodule -Xlinker -dependency_info -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/swiftlint_dependency_info.dat -o /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/Binary/swiftlint -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SourceKitten.build/Release/SourceKittenFramework.build/Objects-normal/x86_64/SourceKittenFramework.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SWXMLHash.build/Release/SWXMLHash.build/Objects-normal/x86_64/SWXMLHash.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/Yams.build/Release/Yams.build/Objects-normal/x86_64/Yams.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/SwiftLintFramework.build/Objects-normal/x86_64/SwiftLintFramework.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/swift-argument-parser.build/Release/ArgumentParser.build/Objects-normal/x86_64/ArgumentParser.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/swift-argument-parser.build/Release/ArgumentParserToolInfo.build/Objects-normal/x86_64/ArgumentParserToolInfo.swiftmodule -Xlinker -add_ast_path -Xlinker /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftyTextTable.build/Release/SwiftyTextTable.build/Objects-normal/x86_64/SwiftyTextTable.swiftmodule

CreateUniversalBinary /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint normal arm64\ x86_64 (in target 'swiftlint' from project 'SwiftLint')
    cd /Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SwiftLint
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/arm64/Binary/swiftlint /Users/shikisuen/Repos/Fire/Build/Intermediates.noindex/SwiftLint.build/Release/swiftlint.build/Objects-normal/x86_64/Binary/swiftlint -output /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint

GenerateDSYMFile /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint.dSYM /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint (in target 'swiftlint' from project 'SwiftLint')
    cd /Users/shikisuen/Library/Developer/Xcode/DerivedData/Fire-emqilstcjpstjdayxagcezudligc/SourcePackages/checkouts/SwiftLint
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint -o /Users/shikisuen/Repos/Fire/Build/Products/Release/swiftlint.dSYM

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal x86_64 (in target 'Fire' from project 'Fire')
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Fire' from project 'Fire')
	CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Fire' from project 'Fire')
	CompileSwift normal arm64 (in target 'Fire' from project 'Fire')
(4 failures)
/Users/shikisuen/Repos/Fire(shiki/scratch)> 

@ShikiSuen
Copy link
Contributor Author

我已经被整得一点没辙了,我这边 Xcode 13.3 根本就没法编译。
也可能是我 SPM 配置出了问题。
PR 那边我已经 commit 了您刚刚要的修改。

@qwertyyb
Copy link
Owner

SPM我也没整起来,就一直No Such Module

@ShikiSuen
Copy link
Contributor Author

@qwertyyb 您那边能用 pod 的话就先用 pod 看看那个 PR 的修复是否有效吧。

SPM 的话,恐怕只能重建整个专案档案了。

@ShikiSuen
Copy link
Contributor Author

(其实我刚刚测试用 git submodule 让 Xcode 读取本地 SPM,也没辙。)

@ShikiSuen
Copy link
Contributor Author

对了,SPM 加入之后,需要在这里添入对应的 SPM 内的元件实体:
「Frameworks, Libraries, and Embedded Content」
image

@qwertyyb
Copy link
Owner

我这里都有的,但是不行,只能先用pods了

@ShikiSuen
Copy link
Contributor Author

CMD+W 的 PR 已合并。
回头等事主修了 Dark Mode 白底的问题之后就结案吧。

@ShikiSuen
Copy link
Contributor Author

ㄖ啊,又发现 Bug 了,是我刚才修 MainMenu 的时候还没发现的其他 Bug。
下面这个画面内的剪贴簿热键是失效的(不然可以直接复制粘贴里面的路径 ):
image

PR 已经送出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants