Swift from ObjC: Cannot resolve variable or class name, but compiles and runs fine.
In my ObjC project I have just added a swift cocoa pod framework. I am able to use the swift classes from ObjC, compile, and run fine but AppCode is not able to resolve any of the variables or classes that are from the swift framework. I can't jump to definition, etc... For my ObjC classes being used in the same file, I have no problem.
This is the first time I'm using swift, and I'm not actually really using it just using a lib that happens to be written in swift, so I'm not sure if I've done something wrong, but it seems suggestive that compiling and running works fine?
Please sign in to leave a comment.
Hi David.
This is due to the following issue: OC-12322. It should be available in one of the EAP builds for AppCode 2016.1.x version. Please watch the ticket to get the update notification.
Specifically, while my project compiles fine, I still get the following red underlines/issues:
For the following, it looks like AppCode mistakenly thinks primitive types are pointer types