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?!

0
8 comments
Avatar
Permanently deleted user
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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

>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
Avatar
Permanently deleted user

It eventually started working.

0
Avatar
Permanently deleted user

They mostly don't work for me, even on 2018.RC1. Here are two screenshots: https://www.dropbox.com/s/nmvv7lib4h57poq/some_show.png?dl=0, https://www.dropbox.com/s/klaaoxe7mugpozl/most_do_not.png?dl=0. Doesn't matter if I build or not and all tasks (like indexing) are finished.

0
Avatar
Permanently deleted user

Roland,

Have you built for device? In case you did, and it's still an issue, please submit a ticket in our tracker, we'll investigate.

0
Avatar
Permanently deleted user

:)

 

I will open an issue.

0

Please sign in to leave a comment.