Need help setting up my project architecture

I have two dependencies on my iOS project.

  • The first is called LK, this is a general structure with some functions used in all my projects (dependency 0).
  • The second is called LKS, it is a certain structure containing sharing functions (1 dependence on LK)

Problem : My current project has 2 dependencies (LK and LKS), and LKS has a dependency on LK. Therefore, I set the LKS header search path to include LK headers. But I think it is dirty.

Do you have a better solution for me to install my project architecture?

+4
source share
1 answer

In fact, this is not "dirty." If you use '#import' Objective-C, then they will not contain headers more than once.

If you plan to include LK everywhere, you can add it to your projectName-Prefix.pch file. This will force it to be included in all the headers of your projects, so there is no need to explicitly specify to include it in LKS.

+2
source

All Articles