objective-cxcodecocoaxcode6smjobbless

Using common privilege helper tool across workspace- SMJobBless


I have a workspace which has 2 projects, one is installer application and other is uninstaller app. Both the apps requires privilege helper tool for some operations. I am trying to write a common tool as a third project in my workspace that would be linked with the existing projects.

Now, the question is how can i add that common tool in target dependency of existing projects and launch(privilege tool) it from other projects.


Solution

  • You can add the project that contains the helper tool within the other workspaces, and then add the target corresponding to the helper tool as build dependency, as you want.

    If however you are using source control and have different repositories for projects, you can use the helper tool repository as a submodule to the other ones. See this article for more on git submodules and how you can use them.