Search code examples
iosswiftjetbrains-ideappcode

AppCode is not detecting errors before compiling


I would like to know why AppCode is not highlighting errors/warning messages (nor swiftLint errors) directly in source editor; only after running the app errors/warnings are shown in Messages panel.

enter image description here

vs

enter image description here

I am using Version 2017.2.3 of AppCode.


Solution

  • I've asked AppCode help center directly and this answer worked. Hope it helps someone too.

    Try building the target against device (instead of simulator) and reopen .swift file: in-editor warnings should work after that.