SourceKit Not Working

Answered

AppCode 2016.3.  I have SourceKit enabled in my Inspectors configuration but it doesn't seem to be checking code as I type.  Is there some setting that I'm missing or is SourceKit integration just not working yet in AppCode?

Here is some sample code.  I was refactoring out some code into a separate function and haven't yet supplied parameters or return values.  I expected lots of SourceKit errors until I fix it but got no complaints.

And here is my Inspectors configuration:

3 comments
Official comment

Hi.

Could you please try to build the target against device (if available) and see if it helps. In case it doesn't, please check what Xcode version is selected in Preferences | Tools | Xcode, open the project in Xcode and check which SourceKit errors specifically are shown there. It would be great if you could create a sample project with the problematic code snippet and send it to us (either to appcode-support@jetbrains.com or by creating issue in our tracker).

Changing the target to a device, clean, rebuild-all seems to have fixed it! Even as I switched back to simulator again, it seems to be working again. Can you give some background so I understand if I have the same problem in the future why this worked?

I will reply back to this thread if it stops working again.

0

For some projects SourceKit depends on certain files which are generated during the build process. The way AppCode's own code parser/analyser currently works requires it to be a build for device.

0

Please sign in to leave a comment.