Accessing class in a different project

Hi there,
I'm following Apple's code sample SimpleFirewall, and I'm trying to create my own project with parts of it including the IPCConnection class within the Network-Extension project.
But on my ViewController class (which is in a different project) I'm getting an error saying:

Cannot find "IPCConnection" in scope

And yet I couldn't find any differences between my project's settings and the SimpleFirewall's settings.

I'm pretty new to swift, and could use your help.
Thanks!
Answered by Stylo in 649548022
OK so I figured that I should have marked both targets for my IPCConnection class.

I couldn't find any differences between my project's settings and the SimpleFirewall's settings.

Please try to explain how you have set up your project.
When you search for IPCConnection in your project, do you find it ? Where ?
I'v created an App project, then under that project I created another "Network Extension" target which created another folder in my App project.
The IPCConnection class is within this NetworkExtension target, and I'm trying to access it through the ViewController in my App project
Accepted Answer
OK so I figured that I should have marked both targets for my IPCConnection class.

Thanks for feedback.

Don't forget to close the thread.
Accessing class in a different project
 
 
Q