Swift inspections not working

Answered

Hi,

I'm running the latest version of AppCode (AppCode 2017.2.3 Build #OC-172.4155.34). But Swift inspections do not work. They're turned on but I have to compile the code to actually see compiler warnings and errors.

The same inspections work fine in XCode (Version 8.3.3 (8E3004b)).

I've tried removing AppCode, deleting all of it's preferences and cache and even restarting my computer. But nothing makes any difference.

Any ideas?!

5 comments
Official comment

Try to build the target against iOS device and reopen .swift file - it should help.

Strangely that seems to have fixed the issue... Thanks!

0

I'm having the same problem with 3rd party frameworks and such.  Works fine in Xcode but not in AppCode.  I'm new to AppCode (evaluating it) so trying to figure this out.  I tried building for my target sim, etc. but it still won't pick up anything.

0

>I tried building for my target sim

Have you tried to build the target for device or simulator? Building for device should help in general - in case it doesn't, try cleaning build folder & re-build for device once again.

0

It eventually started working.

0

Please sign in to leave a comment.