AppCode 在编译前未检测到错误
AppCode is not detecting errors before compiling
我想知道为什么 AppCode 不直接在源代码编辑器中突出显示 errors/warning 消息(也不是 swiftLint 错误);只有在 运行 之后,应用 errors/warning 才会显示在消息面板中。
对比
我使用的是 AppCode 2017.2.3 版。
我直接询问了 AppCode 帮助中心,这个答案有效。希望它也能帮助别人。
Try building the target against device (instead of simulator) and reopen .swift file: in-editor warnings should work after that.
恐怕它在 AC 2021.2.2 中对我不起作用。这是我的版本信息:
AppCode 2021.2.2 Build #OC-212.5284.45, built on September 14, 2021
Runtime version: 11.0.12+7-b1504.28 aarch64 VM: OpenJDK 64-Bit Server
VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old
Generation Memory: 4096M Cores: 8 Registry:
max.suggested.heap.size=8192 Non-Bundled Plugins:
com.intellij.plugin.applescript (0.121), com.appcodeplugins.swiftlint
(1.13.4)
我想知道为什么 AppCode 不直接在源代码编辑器中突出显示 errors/warning 消息(也不是 swiftLint 错误);只有在 运行 之后,应用 errors/warning 才会显示在消息面板中。
对比
我使用的是 AppCode 2017.2.3 版。
我直接询问了 AppCode 帮助中心,这个答案有效。希望它也能帮助别人。
Try building the target against device (instead of simulator) and reopen .swift file: in-editor warnings should work after that.
恐怕它在 AC 2021.2.2 中对我不起作用。这是我的版本信息:
AppCode 2021.2.2 Build #OC-212.5284.45, built on September 14, 2021 Runtime version: 11.0.12+7-b1504.28 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 8 Registry: max.suggested.heap.size=8192 Non-Bundled Plugins: com.intellij.plugin.applescript (0.121), com.appcodeplugins.swiftlint (1.13.4)